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

feat: reduce float decoding allocations by using unsafe #39

Merged
merged 3 commits into from Mar 17, 2022

Commits on Mar 16, 2022

  1. feat: reduce float decoding allocations by using unsafe

    name                           old time/op    new time/op    delta
    Decoder_Float64/floats.json-4    28.6µs ± 3%    23.1µs ± 2%   -19.14%  (p=0.000 n=15+14)
    
    name                           old alloc/op   new alloc/op   delta
    Decoder_Float64/floats.json-4    2.39kB ± 0%    0.00kB       -100.00%  (p=0.000 n=15+15)
    
    name                           old allocs/op  new allocs/op  delta
    Decoder_Float64/floats.json-4       100 ± 0%         0       -100.00%  (p=0.000 n=15+15)
    tdakkota committed Mar 16, 2022
    Copy the full SHA
    c08e8ae View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    6eb578d View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2022

  1. fix: suppress gosec

    tdakkota committed Mar 17, 2022
    Copy the full SHA
    9917dfa View commit details
    Browse the repository at this point in the history