On 2013-03-31, Jesse Glick wrote:

> On 03/31/2013 07:24 AM, bode...@apache.org wrote:
>>> <p>When Ant writes compressed entries into the archive it creates it
>>>  doesn't know the compressed size of an entry before it has been
>>>  written.  Unfortunately the decision whether a Zip64 extra field
>>>  will be written has to be made before writing the entry's
>>>  content.</p>

> Seems like there should be some way around this, by compressing to a
> temporary buffer perhaps?

We do so for STORED entries and risk OutOfMemoryExceptions (we could
throw away the buffer and just count).  The performance impact would be
non-trivial for big files, which is what Zip64 really is about.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to