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

Optimise the balance function #1771

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Optimise the balance function #1771

merged 1 commit into from
Aug 11, 2020

Commits on Aug 11, 2020

  1. Optimise the balance function

    I stumbled upon it by accident and couldn't help myself. This is probably just a
    drop in the bucket.
    
    Microbenchmarks with an UTxO with 1,000,000 entries:
    
    Before:
    
        time                 47.36 ms   (45.38 ms .. 48.76 ms)
                             0.997 R²   (0.994 R² .. 0.999 R²)
        mean                 47.86 ms   (47.23 ms .. 48.89 ms)
        std dev              1.582 ms   (1.131 ms .. 2.370 ms)
    
    After:
    
        time                 18.72 ms   (18.53 ms .. 18.91 ms)
                             0.999 R²   (0.998 R² .. 1.000 R²)
        mean                 18.69 ms   (18.58 ms .. 18.86 ms)
        std dev              305.1 μs   (233.6 μs .. 431.3 μs)
    mrBliss committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    4cf4a93 View commit details
    Browse the repository at this point in the history