-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add IndexInput#prefetch. #13337
Merged
Merged
Add IndexInput#prefetch. #13337
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
63104bd
Add IndexInput#prefetch.
jpountz 3c60086
Add support for prefetch() on `MMapDirectory` via `ReadAdvice#WILL_NE…
jpountz b5665e0
Implement background read as blocking read in a virtual thread.
jpountz 34cdb22
fetch native page size from libc (should work on linux and macos); no…
uschindler c00b1e9
Merge branch 'index_input_prefetch' of https://github.com/jpountz/luc…
uschindler cb053a1
fix code to pass future directly
uschindler ad853e3
use page size also for the check of segment alignment for small chunk…
uschindler 9b817d5
Restore the old READADVICE_TO_IOCONTEXT array and centralize error ha…
uschindler 60aef05
Unde prefetch() on NIOFSDirectory.
jpountz b95a9b8
Remove ReadAdvice#WILL_NEED.
jpountz 21275e4
Add `length` parameter to `prefetch()`.
jpountz a08298c
Remove nocommit.
jpountz b841f1b
Create constant for NativeAccess instead of passing it through the co…
jpountz 0404fc6
CHANGES
jpountz fd69129
iter
jpountz 10c38d0
Add prefetch() to MDW.
jpountz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a singleton, we can make it static and initialize it here. There's no need to pass the optional through constructors and have it in every clone.
We may also make it static final on the provider, but that's unrelated.