ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45396] org.apache.tools.zip is 20x slower than java.util. zip
Date Tue, 15 Jul 2008 04:36:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45396





--- Comment #1 from TAMURA Kent <kent@netbsd.org>  2008-07-14 21:36:21 PST ---
I looked the source code.
When we call ZipOutputStream.write(byte[]) for a large byte array,

* org.apache.tools.zip
  call Deflater.setInput() once for the whole of the array

* java.util.zip
  call Deflater.setInput() multiple times.  One call handles a 512 byte chunk
of the array.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message