Skip to content

btindex: use off-heap EliasFano during build#21800

Closed
AskAlexSharov wants to merge 1 commit into
performancefrom
alex/bt_offheap_ef_perf
Closed

btindex: use off-heap EliasFano during build#21800
AskAlexSharov wants to merge 1 commit into
performancefrom
alex/bt_offheap_ef_perf

Conversation

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

Cherry-pick of #21777 to performance.

…ndex build

NewEliasFano allocates a multi-GB contiguous bit array on the Go heap for
large snapshots (mainnet: ~2B keys → ~3.5 GB). NewEliasFanoOffHeap backs
the same arrays with a mmap'd temp file so the OS pages it, avoiding the
heap spike.

Cherry-pick of #21777
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