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

HybridDirectory should mmap postings. #52641

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Feb 21, 2020

Since version 8.4, MMapDirectory has an optimization to read long[]
arrays directly in little endian order, which postings leverage. So it'd
be more efficient to open postings with MMapDirectory.

I refactored a bit the existing logic to better explain why every listed
file extension is open with mmap.

Since version 8.4, `MMapDirectory` has an optimization to read long[]
arrays directly in little endian order, which postings leverage. So it'd
be more efficient to open postings with `MMapDirectory`.

I refactored a bit the existing logic to better explain why every listed
file extension is open with `mmap`.
@jpountz jpountz added >enhancement :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. v8.0.0 v7.7.0 labels Feb 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Store)

Copy link
Contributor

@iverase iverase 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, LGTM

@jpountz jpountz merged commit 4943bc0 into elastic:master Feb 27, 2020
@jpountz jpountz deleted the enhancement/mmap_doc branch February 27, 2020 08:50
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Feb 27, 2020
Since version 8.4, `MMapDirectory` has an optimization to read long[]
arrays directly in little endian order, which postings leverage. So it'd
be more efficient to open postings with `MMapDirectory`.

I refactored a bit the existing logic to better explain why every listed
file extension is open with `mmap`.
jpountz added a commit that referenced this pull request Feb 28, 2020
Since version 8.4, `MMapDirectory` has an optimization to read long[]
arrays directly in little endian order, which postings leverage. So it'd
be more efficient to open postings with `MMapDirectory`.

I refactored a bit the existing logic to better explain why every listed
file extension is open with `mmap`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >enhancement v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants