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

LUCENE-9387: Remove CodecReader#ramBytesUsed. #79

Merged
merged 2 commits into from Apr 14, 2021

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Apr 12, 2021

This commit removes ramBytesUsed() from CodecReader and all file formats
besides vectors, which is the only remaining file format that might use lots of
memory in the default codec. I left ramBytesUsed() on the completion format
too, which is another feature that could use lots of memory.

Other components that relied on being able to compute memory usage of readers
like facets' TaxonomyReader and the analyzing suggester assume that readers have
a RAM usage of 0 now.

This commit removes `ramBytesUsed()` from `CodecReader` and all file formats
besides vectors, which is the only remaining file format that might use lots of
memory in the default codec. I left `ramBytesUsed()` on the `completion` format
too, which is another feature that could use lots of memory.

Other components that relied on being able to compute memory usage of readers
like facets' TaxonomyReader and the analyzing suggester assume that readers have
a RAM usage of 0 now.
Copy link
Member

@mikemccand mikemccand left a comment

Choose a reason for hiding this comment

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

Thanks @jpountz!

@jpountz jpountz merged commit 79f14b1 into apache:main Apr 14, 2021
@jpountz jpountz deleted the remove_codec_reader_ram_bytes_used branch April 14, 2021 12:37
janhoy pushed a commit to cominvent/lucene that referenced this pull request May 12, 2021
Co-authored-by: epugh@opensourceconnections.com <>
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

2 participants