On Friday 29 October 2004 07:43, [EMAIL PROTECTED] wrote:
> Arik Baratz wrote:
> > On Thu, 28 Oct 2004 15:24:52 +0200, Oded Arbel 
<[EMAIL PROTECTED]> wrote:
> >>Is there any way to get at the size of the original (uncompressed)
> >> file given the bzip2 compressed version ? I've thought about
> >>bzcat2 <file> | wc, but with the size of the files I'm dealing with
> >> it takes several minutes for this command to complete and I would
> >> really like to be able to do it quicker then that.
> >
> > I think it's impossible for stream compressors
>
> It would have been possible if bzip2's implementation bothered to
> keep that data in its output file (if it was a seekable destination,
> like gzip or unix compress used to do as far as I remember).
>
> But from looking at bzip2 lib's sources it looks like they aren't
> doing it.
>
> So my conclusion right now is "no".

Thanks. I'm assuming fixing the implementation to do that will break 
binary compatability with the "old" compressed format.

-- 
Oded

::..
Note that the manuals are out of date! 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to