-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s2: Improve coding for close matches (#613)
Use one less byte when emitting copies that are >64 and offset <2048 Before we emit 60 bytes (3 byte encoding) and remaining as repeat. Now we emit 8 bytes (2 byte encoding) + repeat. Repeat may in rare cases eat back the saved byte, but it is never worse. before -> after: ``` consensus.db.10gb: 4244773384 -> 4228831520 nyc-taxi-data-10M.csv: 779098746 -> 776295996 github-june-2days-2019.json: 832855431 -> 831242779 github-ranks-backup.bin: 554428594 -> 554340949 ```
- Loading branch information
Showing
5 changed files
with
1,167 additions
and
43 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
Oops, something went wrong.