Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huff0: Skip unneeded exhaust check #517

Merged
merged 1 commit into from Mar 8, 2022
Merged

Conversation

klauspost
Copy link
Owner

When not filling there is no reason to check if exhausted.

BenchmarkDecompress4XNoTable/gettysburg/10000-32            11867         11550         -2.67%
BenchmarkDecompress4XNoTable/gettysburg/262143-32           336139        331035        -1.52%
BenchmarkDecompress4XNoTable/twain/10000-32                 11922         11561         -3.03%
BenchmarkDecompress4XNoTable/twain/262143-32                387406        374386        -3.36%
BenchmarkDecompress4XNoTable/pngdata.001/10000-32           12262         11961         -2.45%
BenchmarkDecompress4XNoTable/pngdata.001/262143-32          319131        308746        -3.25%

When not filling there is no reason to check if exhausted.

```
BenchmarkDecompress4XNoTable/gettysburg/10000-32            11867         11550         -2.67%
BenchmarkDecompress4XNoTable/gettysburg/262143-32           336139        331035        -1.52%
BenchmarkDecompress4XNoTable/twain/10000-32                 11922         11561         -3.03%
BenchmarkDecompress4XNoTable/twain/262143-32                387406        374386        -3.36%
BenchmarkDecompress4XNoTable/pngdata.001/10000-32           12262         11961         -2.45%
BenchmarkDecompress4XNoTable/pngdata.001/262143-32          319131        308746        -3.25%
```
@klauspost
Copy link
Owner Author

@WojciechMula - Do you see any problems with this?

@WojciechMula
Copy link
Contributor

@WojciechMula - Do you see any problems with this?

No, that's fine! Thanks.

@klauspost
Copy link
Owner Author

Tried doing the same in the Go code, but it mostly led to slower performance.

@klauspost klauspost merged commit d5c0d28 into master Mar 8, 2022
@klauspost klauspost deleted the huff0-skip-exhaust-check branch March 8, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants