This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A few suggestions for bugzilla mail to gcc-bugs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]