-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gzhttp: Use strings for randomJitter to skip a copy (#767)
* gzhttp: Use strings for randomJitter to skip a copy * gzhttp: Use crc32.Update instead of crc32.New Skips another allocation: name old time/op new time/op delta 2kJitter-8 29.4µs ± 4% 29.0µs ± 3% -1.30% (p=0.006 n=24+24) name old speed new speed delta 2kJitter-8 69.7MB/s ± 4% 70.6MB/s ± 3% +1.30% (p=0.006 n=24+24) name old alloc/op new alloc/op delta 2kJitter-8 3.40kB ± 4% 3.34kB ± 4% -1.94% (p=0.001 n=25+25) name old allocs/op new allocs/op delta 2kJitter-8 16.0 ± 0% 15.0 ± 0% -6.25% (p=0.000 n=25+25)
- Loading branch information
Showing
4 changed files
with
27 additions
and
50 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
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
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
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