-
Notifications
You must be signed in to change notification settings - Fork 593
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
Add bytecode hash in interpreter #1888 #1952
Add bytecode hash in interpreter #1888 #1952
Conversation
CodSpeed Performance ReportMerging #1952 will not alter performanceComparing Summary
|
@rakita i am not sure if option is the best way to do this? Also let me know if we should set the value in the getter directly ! |
Hey, check out the ExtBytecode, it is better place for the hash. And allow ExtBytecode to be initialized with the hash, if this is regenerated every time it is a performance hit. |
thanks! "allow ExtBytecode to be initialized with the hash" -> i introduced new_with_hash to allow this, otherwise calling the hash() method returns the hash and cashes it on the ExtByteCode. Is this what you had in mind? For some reason it caused a regression on the ecrecover precompile perf. I am not sure why though. Do you have any idea @rakita ? |
thanks!
Yes! It would be good for
It is not related, it can be ignored. The test is kinda flaky. |
hey i removed the cached hash test. Should i add anything else? CI passes where do you see it being flaky on your side locally? |
Perfect! The recovery test is flaky as nothing is changed with precompiles but it shows a diff, we can ignore it. Have added the ExtBytecode::new_with_hash usege and will PR merge after CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Resolves #1888