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 :-)
Cheers
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]