-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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% ```
- Loading branch information
Showing
1 changed file
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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