Skip to content

FCR optimization part2: Reuse cached checkpoint states and parallelize fast confirmation scoring - #11214

Draft
zilm13 wants to merge 3 commits into
Consensys-Incorporated:masterfrom
zilm13:fcr-optimization-part2
Draft

FCR optimization part2: Reuse cached checkpoint states and parallelize fast confirmation scoring#11214
zilm13 wants to merge 3 commits into
Consensys-Incorporated:masterfrom
zilm13:fcr-optimization-part2

Conversation

@zilm13

@zilm13 zilm13 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

PR Description

On top of #11212, which should be merged first:

Reuse cached checkpoint states and parallelize fast confirmation scoring

Load the pulled-up head state through the store's checkpoint-state
cache instead of replaying the epoch transition, read a flat
zeroed-balances list instead of materializing validators, resolve each
distinct latest message once, and chunk the vote scan across the common
pool. Prefetch the next epoch's balance source off the critical path at
epoch boundaries.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

zilm13 and others added 3 commits September 1, 2026 20:07
Memoize the per-slot calculator queries (slot committees and ranges,
adversarial weight and safety threshold per balance source, current
target score, honest FFG support, equivocator set) and score a whole
chain segment in a single pass over the active validator set instead of
one pass per block. Add a JMH benchmark covering both scoring paths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    Load the pulled-up head state through the store's checkpoint-state
    cache instead of replaying the epoch transition, read a flat
    zeroed-balances list instead of materializing validators, resolve each
    distinct latest message once, and chunk the vote scan across the common
    pool. Prefetch the next epoch's balance source off the critical path at
    epoch boundaries.
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