mccullocht commented on issue #15286: URL: https://github.com/apache/lucene/issues/15286#issuecomment-3469856724
Yeah, virtual threads for `madvise` is not great -- I think at that point you'd prefer to copy the vector back onto the heap and let the virtual threads parallelize any page faults that might be happening. For non-mmap cases it may make sense to use virtual threads to parallelize in any case since each read is a syscall that may result in IO. It's a little awkward to use the underlying `Directory` implementation as a hint. I may try this. Not worth worrying about better APIs to for this case unless there is some proven value. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
