original-brownbear commented on PR #13472:
URL: https://github.com/apache/lucene/pull/13472#issuecomment-2155919543

   >  I'm not sure if we're at a point where this coordination executor could 
run on virtual threads, but at least conceptually this is how I'm thinking of 
it.
   
   That does make sense. But I wonder if this is something we should leave to 
the runtime/OS/... to figure out for us. It seems very desirable to limit the 
number of context switches when the API is synchronous so we can go through 
short tasks served from page cache with as little overhead as possible?
   
   > would consist of introducing an API on IndexSearcher that doesn't require 
waiting on futures to complete
   
   ++ that'd be really nice and save a lot of overhead here. That said we could 
optimize this code fairly easily to move from waiting on "futures" to waiting 
on a single future :) I haven't benchmarked this much, but if we see 
non-trivial overhead for the wait loop due to frequent wakeup-sleep cycles as 
we go through all of the futures, we could just have a ref-count around a 
single future couldn't we?
   
   > we are replacing some of the forking with the new support we introduced 
for I/O concurrency
   
   ❤️ 
   


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