Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com content-class: urn:content-classes:message Subject: RE: Does gzip support multiple processors under windows 2000? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Date: Fri, 23 Mar 2001 09:20:20 +1100 Message-ID: Thread-Topic: Does gzip support multiple processors under windows 2000? Thread-Index: AcCzG4KKIkZXu3pQTHOtDAF02zNozgAAjDvw From: "Robert Collins" To: "Ilan Rabinovitch" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA07210 > -----Original Message----- > From: Ilan Rabinovitch [mailto:Ilan DOT Rabinovitch AT dig DOT com] > Sent: Friday, March 23, 2001 9:02 AM > To: cygwin AT cygwin DOT com > Subject: RE: Does gzip support multiple processors under windows 2000? > > > > Chris, > > I guess thats what Im trying to figure out. Does it support it? > If not can anyone suggest a form a compression that would > work with multiple > processors? > > Thanks, > Ilan Most compression algorithms are single-threaded - there's few opportunities for parallelism (every data bit out depends on the immediately preceeding bits in). You could play tricks with maximum compression lengths and reset the stream 50% through the file, then run the 1st half through one compressor and the 2nd through another (that's for 2 processors).. but I haven't heard of anyone doing that. (for the most common uses og gzip it's kinda hard to know the file size to make that work, and you can't seek stdin so you'd have to buffer internally). In short I don't know of any parallel stream compressors. Your best bet is to start two operations side by side as parallel processes - that will use both your cpu's. Rob -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple