Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move per-field vector and doc-values readers from TreeMap to HashMap. #13284

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Apr 9, 2024

Our per-field vector and doc-values readers use TreeMaps but don't rely on the iteration order, so these TreeMaps can be replaced with more CPU/RAM-efficient HashMaps.

The per-field postings reader stays on a TreeMap since it relies on the iteration order.

Our per-field vector and doc-values readers use `TreeMap`s but don't rely on
the iteration order, so these `TreeMap`s can be replaced with more
CPU/RAM-efficient `HashMap`s.

The per-field postings reader stays on a `TreeMap` since it relies on the
iteration order.
@jpountz jpountz added this to the 9.11.0 milestone Apr 9, 2024
Copy link
Contributor

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpountz jpountz merged commit 26fe2c4 into apache:main Apr 9, 2024
3 checks passed
@jpountz jpountz deleted the per_field_hashmap branch April 9, 2024 13:59
jpountz added a commit that referenced this pull request Apr 9, 2024
…#13284)

Our per-field vector and doc-values readers use `TreeMap`s but don't rely on
the iteration order, so these `TreeMap`s can be replaced with more
CPU/RAM-efficient `HashMap`s.

The per-field postings reader stays on a `TreeMap` since it relies on the
iteration order.
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.

None yet

3 participants