jpountz opened a new pull request, #13907:
URL: https://github.com/apache/lucene/pull/13907

   This commit tries to save calls to `madvise` which are not necessary, either 
because they map to the OS' default, or because the advice would be overridden 
later on anyway. I have not noticed specific problems with this, but it seems 
desirable to keep calls to `madvise` to a minimum.
   
   As a consequence:
    - Files that are open with `ReadAdvice.NORMAL` do not call `madvise` since 
this is the OS' default.
    - Compound files are always open with `ReadAdvice.NORMAL`, and the actual 
is only set when opening sub files of these compound files.
   
   To make the latter less trappy, the `IOContext` parameter has been removed 
from `CompoundFormat#getCompoundReader`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to