-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[librpfile] RpFile_stdio.cpp, RpFile_win32.cpp: Use SEEK_END/FILE_END…
… with offset -4 to read the gzip uncompressed size. Instead of first seeking to the end of the file (SEEK_END with offset 0), getting the offset, and then seeking to the offset minus 4, just seek to -4 with SEEK_END. It's effectively the same thing and saves one syscall. Tested on both Linux and Windows. Interestingly, RpFile_IStream already did this.
- Loading branch information
1 parent
0bfe6ee
commit 86a54c8
Showing
2 changed files
with
16 additions
and
19 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