A few suggestions for bugzilla mail to gcc-bugs
Daniel Jacobowitz
drow@mvista.com
Mon Jun 2 21:38:00 GMT 2003
On Mon, Jun 02, 2003 at 05:33:15PM -0400, Daniel Berlin wrote:
>
>
> 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.
> :)
I still think we should have some way to get at the compressed size.
But I assume it's in the DB somewhere and databases were never my
strong point.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc
mailing list