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

gzhttp: Use strings for randomJitter to skip a copy #767

Merged
merged 2 commits into from
Mar 10, 2023

Commits on Mar 8, 2023

  1. Configuration menu
    Copy the full SHA
    3ae448f View commit details
    Browse the repository at this point in the history
  2. 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)
    greatroar committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    3eec338 View commit details
    Browse the repository at this point in the history