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 |
Resolves #1888