Draft
Conversation
…hains Add early return for zero-value transfers to avoid unnecessary state operations. The check is skipped for Aura chains (Gnosis) which need zero-value transfers to touch accounts for state root compatibility. This restores performance that was regressed by PR #18846 which removed the zero-check from SubBalance() for Gnosis compatibility. Benchmark improvement (non-Aura chains): - call-identity: 176ms -> 128ms (27% faster) - call-EOA: 194ms -> 144ms (26% faster) - Allocations reduced from 1.3M+ to near zero Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move traceGas function from closure inside Run() to package-level function to avoid potential closure overhead in the hot interpreter loop. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace new(uint256.Int) heap allocations with stack-allocated variables in frequently called opcode functions. This eliminates unnecessary heap allocations in the interpreter hot path. Optimized functions: - opPush1, opPush2, makePush - opGas, opPc, opMsize, opGasLimit - opAddress, opOrigin, opCaller - opCoinbase, opTimestamp, opNumber, opDifficulty - opCallDataSize, opReturnDataSize, opCodeSize Benchmark improvements vs main: - loop-100M: 237ms -> 161ms (32% faster) - call-identity-100M: 157ms -> 132ms (16% faster) - RETURN/1000000: 312ms -> 43ms (86% faster) - SWAP1/10k: 55ms -> 44ms (20% faster, 5 fewer allocs) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Collaborator
|
@Giulio2002 red tests |
Contributor
Author
|
i know WIP. for a reason :) |
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.
No description provided.