Glavo opened a new pull request, #378: URL: https://github.com/apache/commons-compress/pull/378
For most regular zip files, all of their entries will have different names. The current implementation of ZipFile maps each name to a LinkedList in the nameMap in order to deal with the case of duplicate entry names. Normally (64-bit platform, compressed oops enabled), these LinkedLists occupy an additional 56 bytes of memory. This PR optimizes the implementation of `ZipFile`, thereby: * For most zip files, this will save memory; * For most zip files, the speed of filling in nameMap becomes faster when opening `ZipFile`; * `ZipFile::getEntry(String)` will be faster. For extremely rare situations, this PR may have slight negative effects, but I think this should not be a problem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
