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

More predictor optimizations #96

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

fintelia
Copy link
Contributor

This gives another ~5% end-to-end improvement in lossless decoding.

Fixes #94

Microbenchmarks

Before:

test lossless_transform::benches::predictor10 ... bench:       1,295.97 ns/iter (+/- 27.69) = 787 MB/s
test lossless_transform::benches::predictor11 ... bench:       1,500.55 ns/iter (+/- 22.55) = 680 MB/s
test lossless_transform::benches::predictor12 ... bench:       1,172.88 ns/iter (+/- 21.36) = 870 MB/s
test lossless_transform::benches::predictor13 ... bench:       1,665.91 ns/iter (+/- 26.10) = 612 MB/s

After:

test lossless_transform::benches::predictor10 ... bench:         667.62 ns/iter (+/- 26.49) = 1529 MB/s
test lossless_transform::benches::predictor11 ... bench:         363.30 ns/iter (+/- 0.41) = 2809 MB/s
test lossless_transform::benches::predictor12 ... bench:         500.97 ns/iter (+/- 15.03) = 2040 MB/s
test lossless_transform::benches::predictor13 ... bench:         912.48 ns/iter (+/- 20.03) = 1118 MB/s

@fintelia fintelia merged commit 9a13428 into image-rs:main Aug 15, 2024
7 checks passed
@fintelia fintelia deleted the more-predictor-opts branch August 15, 2024 03:21
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.

Optimize predictors
1 participant