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

Replace Map<String,Object> with IntObjectHashMap for DV producer #13686

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

bugmakerrrrrr
Copy link
Contributor

Description

Today, the map between field name and corresponding meta entry in DocValues Producer is represented by a HashMap<String, Object>. To reduce memory usage, we can replace it with an IntObjectHashMap that maps field numbers to meta entries.

Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

This works for me, Lucene90PointsReader already does this.

@bugmakerrrrrr
Copy link
Contributor Author

This works for me, Lucene90PointsReader already does this.

@jpountz I think that we can do the same work for the VectorsReader.

@jpountz jpountz merged commit 6634b41 into apache:main Sep 10, 2024
3 checks passed
@jpountz jpountz added this to the 9.12.0 milestone Sep 10, 2024
ChrisHegarty added a commit to ChrisHegarty/lucene that referenced this pull request Sep 19, 2024
ChrisHegarty added a commit to ChrisHegarty/lucene that referenced this pull request Sep 19, 2024
ChrisHegarty added a commit that referenced this pull request Sep 20, 2024
…cer (#13686) (#13810)

Reverts "Replace Map<String,Object> with IntObjectHashMap for DV producer (#13686)

relates #13809
ChrisHegarty added a commit that referenced this pull request Sep 20, 2024
…cer (#13686)" (#13811)

9.x Revert "Replace Map<String,Object> with IntObjectHashMap for DV producer (#13686)"
@jpountz jpountz modified the milestones: 9.12.0, 10.1.0 Oct 15, 2024
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.

2 participants