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

apd: Improve SetFloat64 efficiency #129

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Commits on Jul 14, 2023

  1. apd: Improve SetFloat64 efficiency

    Prefer to use append and allocate scratch space to improve
    allocation efficiency of SetFloat64.
    
    ```
    name         old time/op    new time/op    delta
    SetFloat-10     261ns ± 0%     243ns ± 1%   -6.66%  (p=0.000 n=9+9)
    
    name         old alloc/op   new alloc/op   delta
    SetFloat-10     91.0B ± 0%     67.0B ± 0%  -26.37%  (p=0.000
    n=10+10)
    
    name         old allocs/op  new allocs/op  delta
    SetFloat-10      4.00 ± 0%      3.00 ± 0%  -25.00%  (p=0.000
    n=10+10)
    ```
    Yevgeniy Miretskiy committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    83e12c8 View commit details
    Browse the repository at this point in the history