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

perf[venom]: improve OrderedSet operations #4246

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

What I did

improve time spent in venom by 25%

How I did it

dict views support set operations, https://docs.python.org/3/library/stdtypes.html#dict-views

How to verify it

check time vyper --optimize none vs time vyper --experimental-codegen --optimize none for a large-ish vyper contract

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

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

roughly 10% improvement in venom section
dict.keys().__iand__ for better performance, roughly 20% improvement for
time spent in venom
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