Skip to content

Cut per-read allocations on the flatkv EVM state view hot path - #4163

Merged
masih merged 1 commit into
mainfrom
masih/1789403573-flatkv-read-allocs
Sep 15, 2026
Merged

masih merged 1 commit into
mainfrom
masih/1789403573-flatkv-read-allocs

Cut per-read allocations on the flatkv EVM state view hot path

e067bec
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Sep 14, 2026 in 1s

65.85% (-0.74%) compared to 09fc34b

View this Pull Request on Codecov

65.85% (-0.74%) compared to 09fc34b

Details

Codecov Report

❌ Patch coverage is 80.26316% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.85%. Comparing base (09fc34b) to head (e067bec).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sei-db/state_db/sc/flatkv/vtype/rows.go 68.96% 9 Missing ⚠️
sei-db/state_db/sc/flatkv/state_view.go 87.87% 4 Missing ⚠️
sei-db/state_db/sc/flatkv/ktype/ktype.go 75.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4163      +/-   ##
==========================================
- Coverage   66.59%   65.85%   -0.74%     
==========================================
  Files        2196     2111      -85     
  Lines      169208   160704    -8504     
==========================================
- Hits       112676   105828    -6848     
+ Misses      56391    54735    -1656     
  Partials      141      141              
Files with missing lines Coverage Δ
sei-db/db_engine/view/shard.go 88.75% <100.00%> (ø)
sei-db/state_db/sc/flatkv/vtype/code_data.go 100.00% <100.00%> (ø)
sei-db/state_db/sc/flatkv/ktype/ktype.go 89.79% <75.00%> (-2.89%) ⬇️
sei-db/state_db/sc/flatkv/state_view.go 79.43% <87.87%> (-1.03%) ⬇️
sei-db/state_db/sc/flatkv/vtype/rows.go 68.96% <68.96%> (ø)

... and 88 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.