core/vm: avoid memory expansion check for trivial ops (#24048)#7
Open
minh-bq wants to merge 1 commit intoronin-chain:masterfrom
Open
core/vm: avoid memory expansion check for trivial ops (#24048)#7minh-bq wants to merge 1 commit intoronin-chain:masterfrom
minh-bq wants to merge 1 commit intoronin-chain:masterfrom
Conversation
commit ethereum/go-ethereum@155795b. This moves the memorySize and memory resize into dynamicGas branch based on the assumption that an opcode that have memorySize function will have dynamicGas function. goos: linux goarch: amd64 pkg: github.com/ethereum/go-ethereum/core/vm cpu: AMD EPYC 7763 64-Core Processor │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ EvmInsertionSort-4 77.40m ± 13% 74.33m ± 5% -3.97% (p=0.007 n=10) EvmQuickSort-4 4.952m ± 1% 4.766m ± 1% -3.76% (p=0.000 n=10) EvmSignatureValidation-4 11.36µ ± 3% 11.04µ ± 1% -2.78% (p=0.000 n=10) EvmMulticallErcTransfer-4 4.625m ± 1% 4.529m ± 2% -2.07% (p=0.003 n=10) EvmRedBlackTree-4 223.8m ± 2% 215.3m ± 3% -3.82% (p=0.001 n=10) geomean 5.380m 5.203m -3.28%
trantienduchn
approved these changes
May 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
commit ethereum/go-ethereum@155795b.
This moves the memorySize and memory resize into dynamicGas branch based on the assumption that an opcode that have memorySize function will have dynamicGas function.