Skip to content

perf(client): skip rlp check if rlp clearly not large enough - #3302

Draft
jochem-brouwer wants to merge 1 commit into
ethereum:forks/amsterdamfrom
jochem-brouwer:perf/bound-block-rlp-size
Draft

perf(client): skip rlp check if rlp clearly not large enough#3302
jochem-brouwer wants to merge 1 commit into
ethereum:forks/amsterdamfrom
jochem-brouwer:perf/bound-block-rlp-size

Conversation

@jochem-brouwer

Copy link
Copy Markdown
Member

Description

Not sure if I want this, but will dump this PR here otherwise I will forget. This calculates an upper bound on the RLP size of the block, and only if this upper bound could exceed the max we calculate the block RLP. This is an expensive operation which we only want to do if it is strictly necessary.
Will keep in draft because not sure if I want to push for this, it feels out of place, it gives nice speedups for the stateful filler though.

Related Issues or PRs

N/A.

Checklist

  • Ran fast static checks to avoid CI fails, see Code Standards & Verifying Changes: just static
  • PR title has the form <type>(<area>): <title>, where <type> and <area> come from an appropriate C-<type>, respectively A-<area>, label. The title should match the target squash commit message.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.49%. Comparing base (7a0430d) to head (e37370e).

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #3302   +/-   ##
================================================
  Coverage            93.49%   93.49%           
================================================
  Files                  624      624           
  Lines                37056    37056           
  Branches              3394     3394           
================================================
  Hits                 34647    34647           
  Misses                1653     1653           
  Partials               756      756           
Flag Coverage Δ
unittests 93.49% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant