vigyasharma commented on issue #15286:
URL: https://github.com/apache/lucene/issues/15286#issuecomment-3474734350

   I haven't worked with virtual threads for async IO myself, so this is more 
for my understanding... I read that virtual threads get pinned to the carrier 
platform thread when used for Foreign Function and Memory API.
   
   Since MMapDirectory on Java 21+ uses MemorySegment (part of FFM API), does 
this mean we cannot (should not) use virtual threads for MMAP file access use 
cases?
   
   Is the thinking here that we continue to use mmap access for the ANN graph 
search (fetching neighbor vector values for similarity checks), and 
independently leverage DirectIO with virtual threads for tasks like rescoring 
on vector similarity?


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

Reply via email to