javanna opened a new pull request, #13541:
URL: https://github.com/apache/lucene/pull/13541

   When an executor is provided to the IndexSearcher constructor, the searcher 
now executes tasks on the thread that invoked a search as well as its 
configured executor. Users should reduce the executor's thread-count by 1 to 
retain the previous level of parallelism. Moreover, it is now possible to start 
searches from the same executor that is configured in the IndexSearcher without 
risk of deadlocking. A separate executor for starting searches is no longer 
required.
   
   Previously, a separate executor was required to prevent deadlock, and all 
the tasks were offloaded to it unconditionally, wasting resources in some 
scenarios due to unnecessary forking, and the caller thread having to wait for 
all tasks to be completed anyways. it can now actively contribute to the 
execution as well.
   


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