You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add another decode loop that doesn't check sizes as long as src is big enough.
For now only in Go version.
Streams:
```
Before: Decompressing. 426243297 -> 1000000000 [234.61%]; 1.941s, 491.3MB/s
After: Decompressing. 426243297 -> 1000000000 [234.61%]; 1.895s, 503.3MB/s
```
Some blocks like it a lot:
```
BenchmarkDecodeS2Block/4-pdf/block-32 379 336 -11.35%
BenchmarkDecodeS2Block/4-pdf/block-better-32 691 630 -8.83%
BenchmarkDecodeS2Block/4-pdf/block-best-32 816 702 -13.97%
BenchmarkDecodeS2Block/5-html4/block-32 13645 8727 -36.04%
BenchmarkDecodeS2Block/5-html4/block-better-32 14059 9204 -34.53%
BenchmarkDecodeS2Block/5-html4/block-best-32 13729 8975 -34.63%
```
0 commit comments