Skip to content

HybridDirectory should mmap postings. #52873

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

Merged
merged 1 commit into from
Feb 28, 2020
Merged

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Feb 27, 2020

Backport of #52641

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 :Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. backport labels Feb 27, 2020
@elasticmachine
Copy link
Collaborator

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

@jpountz jpountz merged commit 331d4bb into elastic:7.x Feb 28, 2020
@jpountz jpountz deleted the backport/52641 branch February 28, 2020 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants