https://bz.apache.org/bugzilla/show_bug.cgi?id=62995
Bug ID: 62995
Summary: Unzip performance regression on Windows due to BZ
62502
Product: Ant
Version: 1.9.13
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
While playing around with maven-antrun-plugin and more recent Ant versions than
1.9.4 that comes with the plugin, I discovered that with 1.9.13 the unzip task
is way slower for larger zipfiles than 1.9.12.
Unfortunately I am not allowed to share the JBoss EAP 6.4 zipfile I was testing
with (a RedHat subscription is required).
The file is around 300 MB and cotains 1340 directories and 1517 files.
I guess the problem is the use of File.getCanoniocalPath() (twice for each file
being extracted), introduced by this change:
https://github.com/apache/ant/commit/6a41d62cb9ab4e640b72cb4de42a6c211dea645d#diff-28908450670f05abc5779fa0c9291510
Respective ticket: https://bz.apache.org/bugzilla/show_bug.cgi?id=62502
One possible simple fix might be to check File.getPath() for ".." and if (and
only if) at least one occurence is found, isLeadingPath() is called.
Envorinment:
Java version: 1.8.0_192, vendor: Oracle Corporation
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
PS: Maybe Linux is affected as well, didn't test...
--
You are receiving this mail because:
You are the assignee for the bug.