titanoboa
titanoboa copied to clipboard
improve module fingerprint performance
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
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]