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

improve module fingerprint performance #305

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Sep 8, 2024

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 vyperlang/vyper#4229.

How to verify it

Description for the changelog

Cute Animal Picture

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

Copy link

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

Package New capabilities Transitives Size Publisher
pypi/vyper@0.4.1b1 environment, eval, filesystem, network, shell, unsafe +2 3.32 MB charles-cooper, fubuloubu, iamdefinitelyahuman, ...1 more

🚮 Removed packages: pypi/vyper@0.4.0

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant