zstd: Improve match speed of fastest level.#241
Merged
Conversation
Inline matchlen code and slightly simplify it. This loses a small amount of compression but gives a big speedup. Before/after, best of 3 runs each: ``` file out level insize outsize millis mb/s enwik9 zskp 1 1000000000 343831004 4202 226.91 enwik9 zskp 1 1000000000 343848582 3682 258.97 github-june-2days-2019.json zskp 1 6273951764 698824137 10787 554.67 github-june-2days-2019.json zskp 1 6273951764 699045015 10474 571.23 github-ranks-backup.bin zskp 1 1862623243 454018274 4833 367.54 github-ranks-backup.bin zskp 1 1862623243 454072815 4568 388.82 rawstudio-mint14.tar zskp 1 8558382592 3667295557 21060 387.55 rawstudio-mint14.tar zskp 1 8558382592 3667489370 20207 403.90 nyc-taxi-data-10M.csv zskp 1 3325605752 641244049 10954 289.53 nyc-taxi-data-10M.csv zskp 1 3325605752 641339945 9668 328.01 gob-stream zskp 1 1911399616 234947276 3514 518.62 gob-stream zskp 1 1911399616 235022249 3354 543.36 ```
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Inline matchlen code and slightly simplify it. This loses a small amount of compression but gives a big speedup. This seems reasonable at the fastest level.
Before/after, best of 3 runs each: