A few suggestions for bugzilla mail to gcc-bugs
Daniel Berlin
dberlin@dberlin.org
Mon Jun 2 21:34:00 GMT 2003
On Mon, 2 Jun 2003, Andreas Schwab wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
>
> |> Can you query the compressed size more quickly? We don't need to be
> |> precise here...
>
> "gzip -l" should do the trick, provided that the input is seekable.
This isn't shell script, it's perl, forking a new process in a very often
used cgi script for every single attachment is *not* a good idea.
But that's besides the point anyway.
The data is *not* in gzip format in memory.
It has no gzip header with the size in it in front.
The *only* way to get the size is to decompress it.
I could, of course, convert them all to be in-memory gzip files, but i'm a
bit busy with other things at the moment to care about this.
:)
More information about the Gcc
mailing list