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

Reduce custom error allocation #70

Merged
merged 1 commit into from Jan 4, 2021

Commits on Jan 4, 2021

  1. Reduce custom error allocation

    Zero allocation by using non-pointer error.
    
    related google#69
    
    name               old time/op    new time/op    delta
    ParseBadLength-16    15.4ns ± 0%     3.5ns ± 0%   ~     (p=1.000 n=1+1)
    
    name               old alloc/op   new alloc/op   delta
    ParseBadLength-16     8.00B ± 0%     0.00B        ~     (p=1.000 n=1+1)
    
    name               old allocs/op  new allocs/op  delta
    ParseBadLength-16      1.00 ± 0%      0.00        ~     (p=1.000 n=1+1)
    johejo committed Jan 4, 2021
    Copy the full SHA
    d1ba04a View commit details
    Browse the repository at this point in the history