uschindler commented on PR #13381:
URL: https://github.com/apache/lucene/pull/13381#issuecomment-2118878096

   P.S.: Actually when looking at the code, the `MemorySegment#load()` method 
calls `madvise(MADV_WILLNEED)`. So we could also implement prefetch using 
`load()`.
   
   The only problem with that is: After doing the madvise, it touches a byte in 
each page to actually trigger the load synchronously. So we have to stay with 
our direct native call here.


-- 
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