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

zstd: Store previous offsets in registers #548

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Commits on Apr 4, 2022

  1. zstd: Store previous offsets in registers

    Not super visible in microbenches (presumably because of cache), but very visible in streaming decodes.
    
    Before/after:
    
    ```
    BenchmarkDecoderSilesia-32    	       4	 281168525 ns/op	 753.81 MB/s	   50218 B/op	      44 allocs/op
    BenchmarkDecoderSilesia-32    	       6	 190584583 ns/op	1112.09 MB/s	   49446 B/op	      45 allocs/op
    
    BenchmarkDecoderEnwik9-32    	       1	1439964200 ns/op	 694.46 MB/s	   71952 B/op	      51 allocs/op
    BenchmarkDecoderEnwik9-32    	       1	1184307200 ns/op	 844.38 MB/s	   72144 B/op	      53 allocs/op
    ```
    klauspost committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    7a15aaf View commit details
    Browse the repository at this point in the history