-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZipFile - speedup initialization for zip archive by 30-50%
unzip.h/.cpp - unzGoToFirstFile/unzGoToNextFile retrieves information about the current file, so it is possible to remove redundant calls to unzGetCurrentFileInfo and speed up general execution. unzip.h/.cpp are modified accordingly by creation unzGoToFirstFile64 and unzGoToNextFile64 with file info (unz_file_info64) and name as possible output parameters. ZipFile::setFilter (it is used to create a file list at ZipFile constructor) - redundant calls to unzGetCurrentFileInfo64 are removed, so briefly the time required to generate a zip file list is something like 1 average old unzLocateFile call.
- Loading branch information
Showing
3 changed files
with
77 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters