commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [compress] zip64 writing seems to be broken
Date Mon, 05 Jan 2015 13:43:00 GMT
On 2015-01-04, Kristian Rosenvold wrote:

> Most surprising to me is that it seems like the overhead of lots of
> small calls to RandomAccessFile.write seems to be a lot costlier than
> I thought it would be. It seems like consolidating to a larger byte
> array before calling write is a *lot* faster.

This surprises me as well.

> So in some places where the upper memory constraint is known (like
> writing the central directory), it seems to make a lot of sense to do
> it in a single/a few writes.

Makes sense.

> I'm also looking at modifications to write the full file single pass
> (without seek operations for sizes), it's reasonably expensive to do
> all that seeking to establish information we already have.

I'm not sure I understand where you are heading, but I'll see when you
are ready :-)



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message