Skip to content

perf: swap readset ownership instead of cloning in SetReadset#2848

Draft
pdrobnjak wants to merge 1 commit intoperf/pool-cms-maps-evm-snapshotfrom
perf/swap-readset-ownership
Draft

perf: swap readset ownership instead of cloning in SetReadset#2848
pdrobnjak wants to merge 1 commit intoperf/pool-cms-maps-evm-snapshotfrom
perf/swap-readset-ownership

Conversation

@pdrobnjak
Copy link
Contributor

Summary

  • Swap readset ownership instead of cloning in SetReadset to avoid deep copy overhead

Stack

13/13 — depends on perf/pool-cms-maps-evm-snapshot (top of stack)

🤖 Generated with Claude Code

@github-actions
Copy link

github-actions bot commented Feb 11, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 11, 2026, 1:38 PM

@pdrobnjak pdrobnjak self-assigned this Feb 11, 2026
@pdrobnjak pdrobnjak force-pushed the perf/swap-readset-ownership branch from ac5e352 to b07abc5 Compare February 11, 2026 13:19
@pdrobnjak pdrobnjak force-pushed the perf/pool-cms-maps-evm-snapshot branch from 30417de to 7f1e084 Compare February 11, 2026 13:19
Change SetReadset to take ownership of the caller's readset map and
return the slot's old readset for reuse, eliminating the per-call
clone allocation (~5.6 GB / 30s). The VIS reuses the returned old
map (cleared on Reset) instead of allocating fresh maps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pdrobnjak pdrobnjak force-pushed the perf/swap-readset-ownership branch from b07abc5 to 63412a0 Compare February 11, 2026 13:37
@pdrobnjak pdrobnjak force-pushed the perf/pool-cms-maps-evm-snapshot branch from 7f1e084 to 21bbfc8 Compare February 11, 2026 13:37
@pdrobnjak pdrobnjak marked this pull request as draft February 11, 2026 14:06
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.

1 participant

Comments