benwtrent commented on PR #13124:
URL: https://github.com/apache/lucene/pull/13124#issuecomment-1961730452

   > Intra-merge concurrency would take advantage of the fact that there will 
sometimes be fewer active merges than threads to enable intra-merge 
concurrency. 
   
   Sorry for being so dense, `Executor#execute` finally clicked it for me. 
`Executor#execute` can check for `currentRunningThreads + mergeThreads.size()`. 
If its larger than `>= maxThreadCount` execute in the current thread, otherwise 
spawn or give a thread from a pool. This would then increment 
`currentRunningThreads`.
   
   I will spin a little bit on this to see what I can come up with.


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