perf: cache block-level constants in executeEVMTxWithGigaExecutor#2899
Merged
perf: cache block-level constants in executeEVMTxWithGigaExecutor#2899
executeEVMTxWithGigaExecutor#2899Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
8a8da09 to
2c835ac
Compare
executeEVMTxWithGigaExecutor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2899 +/- ##
==========================================
- Coverage 58.12% 52.71% -5.41%
==========================================
Files 2111 2049 -62
Lines 173544 163882 -9662
==========================================
- Hits 100879 86397 -14482
- Misses 63706 69286 +5580
+ Partials 8959 8199 -760
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Cache ChainID, BlockContext, ChainConfig, and BaseFee once per block instead of recomputing them for every transaction. These values are identical for all txs in a block but were previously causing redundant store reads, Keccak256 hashing, and big.Int allocations on every call. The cache is constructed as a local variable and passed as a parameter to executeEVMTxWithGigaExecutor, avoiding any mutable state on App. Both giga execution paths (synchronous and OCC) are covered. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9505077 to
fce7d6a
Compare
arajasek
approved these changes
Feb 17, 2026
Resolve conflicts in app/app.go: incorporate main's gas pre-charge logic and ExecuteTransactionFeeCharged API while preserving branch's cache.baseFee usage for the execution call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
stevenlanders
approved these changes
Feb 27, 2026
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.
Summary
ChainID,BlockContext,ChainConfig,BaseFee) once per block, eliminating redundant store reads, Keccak256 hashing, andbig.Intallocations per transactionexecuteEVMTxWithGigaExecutorProcessTxsSynchronousGiga— sequential path (non-OCC)ProcessTXsWithOCCGiga— parallel OCC pathAllocation reduction (heap diff,
alloc_space)GetVMBlockContextVersionIndexedStore.UpdateReadSetVersionIndexedStore.GetDec.UnmarshalJSON(params)json.Unmarshal(params)gaskv.NewStoreTPS is roughly flat — the win is in reduced GC pressure from eliminating ~11 GB of redundant allocations per 300s run.
Test plan
go build ./app/...compiles cleanlygofmt -s -l app/app.goproduces no output🤖 Generated with Claude Code