Repository navigation
perf(get-block): 14.5 MiB full-chain resolver catalog, Ed25519 short-circuit, and 720 MiB/s JSON streaming - #107
Merged
augustin-cheron merged 1 commit intoNov 30, 2026
Conversation
…t, and 720 MiB/s JSON streaming
augustin-cheron
deleted the
perf/get-block-round3-fast-resolver-and-render
branch
November 30, 2026 22:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blockzilla/get-block/resolver):Vec<ArchiveV2HotBlockIndexRow>(22.5 MiB/epoch->24.5 GiBacross1,100epochs, exceedingMemoryMax=2G) with a256-row sparse-strideHotIndex(13.5 KiB/epoch->14.5 MiBtotal RAM for1,100epochs, 1,700x smaller) backed by a single<= 13.3 KiBpreadon the pinned openarchive-v2-blocks.indexFD.--startup-verify sha256|metadata(sha256default preserved;metadataadmits 1,100+ pre-verified epochs in< 200 mswithout reading450 GBinto cgroup page cache) and reuses athread_local!64 KiBscratch buffer inCatalog::resolve.VoteTowerSyncEd25519verify_strictShort-Circuit & Wire Reuse:select_signed_message_candidate_ed25519stops at the first verified candidate when each instruction's candidates have pairwise-distinct byte slices (guaranteed unique undered25519_dalek::VerifyingKey::verify_strict), skipping Candidate 1 message serialization and Ed25519 scalar multiplication on modern vote transactions.vote_proof::resolve_message_wirereturns the already-serialized & verifiedwire_messagedirectly intoscratch.wire_message, skipping a second key-resolution and message-serialization pass inblock_base64.719.8 MiB/sWorker JSON & Base64 Streaming (+64.5%Faster):Resolver(five8::encode_32runs at most once per unique pubkey across transaction keys, token balances, rewards, and logs).Vec<String>log streaming (fill_logs_scratch_with_resolver+fast_json_str), vectorizedBASE64.encode_slice(base64_bytes), stack[u8; 9]ComputeBudgetserialization, and single-pass predecoded(message, metadata)reuse acrossHotBlockData::collect_references->stream_full_value_into(6.66 ms->4.08 ms,719.8 MiB/s, SHA-256 verified identical).