bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP-BUG: [bug #20161] support automatic (de)compression for system/


From: Mark H. Wood
Subject: Re: PSPP-BUG: [bug #20161] support automatic (de)compression for system/portable file I/O
Date: Mon, 18 Jun 2007 09:19:20 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Why not look at the algorithms?

http://www.gzip.org/algorithm.txt

'deflate' does seem to buffer up the output stream for a while, but it
can flush those buffers when it determines that a fresh dictionary
should be started.  Small streams might be completely buffered, but it
becomes increasingly likely with increasing length that the output
stream will be blocked rather than retained complete.

GNU 'tar' can be instructed to pass the archive through 'compress' or
(more usually, these days) 'gzip', so there is some experience there
to draw on.

There's some discussion of bzip2 at Wikipedia:

http://en.wikipedia.org/wiki/Bzip2

It looks like bzip2 doesn't necessarily buffer the whole stream
either.  Again, recent GNU 'tar' can pipe through bzip2 so there is
some experience with real-world behavior of this model.

-- 
Mark H. Wood, Lead System Programmer   address@hidden
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgp6LHDlFGn8x.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]