titanoboa icon indicating copy to clipboard operation
titanoboa copied to clipboard

improve module fingerprint performance

Open charles-cooper opened this issue 1 year ago • 1 comments

What I did

improve the time to compute the fingerprint of a module. results in about a 30% improvement to load some cached contracts.

master:

In [3]: %timeit boa.load("tmp/token.vy", 50)
131 ms ± 3.23 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)

this branch:

In [3]: %timeit boa.load("tmp/token.vy", 50)
92.6 ms ± 805 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)

How I did it

use compiler_data.integrity_hash. depends https://github.com/vyperlang/vyper/pull/4229.

How to verify it

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

charles-cooper avatar Sep 08 '24 14:09 charles-cooper

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/[email protected] environment, eval, filesystem, network, shell, unsafe +2 3.32 MB charles-cooper, fubuloubu, iamdefinitelyahuman, ...1 more

🚮 Removed packages: pypi/[email protected]

View full report↗︎

socket-security[bot] avatar Oct 18 '24 14:10 socket-security[bot]