Skip to content

within() iterator caches records#10

Merged
marselester merged 1 commit intomasterfrom
iter-cache
Feb 22, 2026
Merged

within() iterator caches records#10
marselester merged 1 commit intomasterfrom
iter-cache

Conversation

@marselester
Copy link
Owner

Databases such as City/Country have nested structures that take more time to decode. They also have many networks pointing to the same record, so the cache avoids re-decoding those shared records. With 16-entry ring buffer we can get ~30%-40% speed up when scanning City/Country databases.

Databases such as City/Country have nested structures that take more
time to decode. They also have many networks pointing to the same
record, so the cache avoids re-decoding those shared records.
@marselester marselester changed the title within()'s iterator caches records within() iterator caches records Feb 22, 2026
@marselester marselester merged commit fe610fc into master Feb 22, 2026
1 check passed
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