Skip to content

chore(dictionary): make inverse index map to use struct instead of ptr#34

Merged
raf555 merged 3 commits into
mainfrom
chore/make-idxmap-as-value
May 11, 2026
Merged

chore(dictionary): make inverse index map to use struct instead of ptr#34
raf555 merged 3 commits into
mainfrom
chore/make-idxmap-as-value

Conversation

@raf555
Copy link
Copy Markdown
Owner

@raf555 raf555 commented May 11, 2026

the inverse indexes lives in the heap with hundred of thousands objects, giving the GC some extra pressures, although not much

since the struct is small anyway, making it as struct instead of pointer to reduce number of live objects in the heap.

Quick run shows a slight improvement, although not much.

image

@raf555 raf555 force-pushed the chore/make-idxmap-as-value branch from ab5a263 to 979c92d Compare May 11, 2026 04:57
@raf555 raf555 marked this pull request as ready for review May 11, 2026 13:30
@raf555 raf555 merged commit fc111ec into main May 11, 2026
4 checks passed
@raf555 raf555 deleted the chore/make-idxmap-as-value branch May 11, 2026 13:32
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