Skip to content

Eliminate per-iteration allocation in SetEvmOnlyBlockBloom#3133

Merged
masih merged 5 commits into
mainfrom
masih/fix-bloom-enthusiastic-alocs
Mar 31, 2026
Merged

Eliminate per-iteration allocation in SetEvmOnlyBlockBloom#3133
masih merged 5 commits into
mainfrom
masih/fix-bloom-enthusiastic-alocs

Conversation

@masih

@masih masih commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

ORBytes supports in-place operation where the destination overlaps with a source, so we can OR directly into blockBloom instead of allocating a temporary slice on every loop iteration.

                            │   Before    │              After
                            │   sec/op    │   sec/op     vs base
SetEvmOnlyBlockBloom-12       6.890µ ± 0%   5.658µ ± 0%  -17.88%

                            │   Before     │              After
                            │    B/op      │    B/op      vs base
SetEvmOnlyBlockBloom-12       12.80Ki ± 0%   0.000 ± 0%  -100.00%

                            │   Before    │              After
                            │  allocs/op  │  allocs/op   vs base
SetEvmOnlyBlockBloom-12       50.00 ± 0%     0.00 ± 0%  -100.00%

ORBytes supports in-place operation where the destination overlaps
with a source, so we can OR directly into blockBloom instead of
allocating a temporary slice on every loop iteration.

                            │   Before    │              After
                            │   sec/op    │   sec/op     vs base
SetEvmOnlyBlockBloom-12       6.890µ ± 0%   5.658µ ± 0%  -17.88%

                            │   Before     │              After
                            │    B/op      │    B/op      vs base
SetEvmOnlyBlockBloom-12       12.80Ki ± 0%   0.000 ± 0%  -100.00%

                            │   Before    │              After
                            │  allocs/op  │  allocs/op   vs base
SetEvmOnlyBlockBloom-12       50.00 ± 0%     0.00 ± 0%  -100.00%
@masih masih requested review from Kbhat1, codchen and sei-will March 30, 2026 13:34
@github-actions

github-actions Bot commented Mar 30, 2026

Copy link
Copy Markdown

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 31, 2026, 8:52 AM

@masih masih requested a review from amir-deris March 30, 2026 13:35
@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.72%. Comparing base (fcfbfdd) to head (1166e8a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
giga/deps/xevm/keeper/log.go 50.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3133      +/-   ##
==========================================
- Coverage   58.75%   58.72%   -0.03%     
==========================================
  Files        2095     2094       -1     
  Lines      173543   173021     -522     
==========================================
- Hits       101961   101603     -358     
+ Misses      62469    62358     -111     
+ Partials     9113     9060      -53     
Flag Coverage Δ
sei-chain-pr 67.90% <75.00%> (?)
sei-db 70.41% <ø> (ø)

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

Files with missing lines Coverage Δ
x/evm/keeper/log.go 79.10% <100.00%> (-1.46%) ⬇️
giga/deps/xevm/keeper/log.go 46.26% <50.00%> (+10.15%) ⬆️

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

@masih masih enabled auto-merge March 30, 2026 18:37
@masih masih added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 72e501a Mar 31, 2026
39 checks passed
@masih masih deleted the masih/fix-bloom-enthusiastic-alocs branch March 31, 2026 09:20
yzang2019 added a commit that referenced this pull request Mar 31, 2026
* main:
  fix(flatkv): harden error handling for readonly store and crash cleanup (#3127)
  Remove redundant makefiles, unused code and adjust docs (#3149)
  Fix minor logging issues (#3147)
  PLT-225 Use in place orbytes for bloom filter (#3144)
  Eliminate per-iteration allocation in SetEvmOnlyBlockBloom (#3133)
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.

4 participants