Skip to content

Debug Trace Speedup#3058

Open
Kbhat1 wants to merge 7 commits intomainfrom
kartik/debug-trace-speedups
Open

Debug Trace Speedup#3058
Kbhat1 wants to merge 7 commits intomainfrom
kartik/debug-trace-speedups

Conversation

@Kbhat1
Copy link
Contributor

@Kbhat1 Kbhat1 commented Mar 12, 2026

Describe your changes and provide context

  • Remove unnecessary store tracing on ordinary debug traces
  • Add a tracing-only DBImpl read cache for repeated code, nonce, balance, and storage lookups
  • Parallelize native/default block trace execution across per-tx prestate snapshots while preserving ordered state advancement (largest improvement)

Testing performed to validate your change

  • Tested on node

Kbhat1 added 4 commits March 12, 2026 10:04
Avoid store tracing for ordinary debug traces, cache repeated traced EVM state reads, and parallelize native block trace execution.

Made-with: Cursor
@github-actions
Copy link

github-actions bot commented Mar 12, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 13, 2026, 2:55 PM

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.26%. Comparing base (837ba92) to head (3c6272f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3058      +/-   ##
==========================================
- Coverage   58.35%   58.26%   -0.09%     
==========================================
  Files        2080     2072       -8     
  Lines      171659   171263     -396     
==========================================
- Hits       100170    99788     -382     
+ Misses      62564    62551      -13     
+ Partials     8925     8924       -1     
Flag Coverage Δ
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
app/app.go 70.55% <ø> (+0.36%) ⬆️
evmrpc/tracers.go 64.39% <ø> (-1.18%) ⬇️
sei-cosmos/types/context.go 93.67% <ø> (ø)
x/evm/state/balance.go 68.67% <ø> (+6.71%) ⬆️
x/evm/state/code.go 84.61% <ø> (+2.26%) ⬆️
x/evm/state/nonce.go 71.42% <ø> (-3.58%) ⬇️
x/evm/state/state.go 96.77% <ø> (-0.06%) ⬇️
x/evm/state/statedb.go 79.05% <ø> (ø)

... and 56 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Kbhat1 Kbhat1 requested a review from yzang2019 March 13, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant