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

   `TopScoreDocCollectorManager` has a dependency on `HitsThresholdChecker`, 
which is essentially a shared counter that is incremented until it reaches the 
total hits threshold, when the scorer can start dynamically pruning hits.
   
   A consequence of this removal is that dynamic pruning may start later, as 
soon as:
    - either the current slice collected `totalHitsThreshold` hits,
    - or another slice collected `totalHitsThreshold` hits and the current 
slice collected enough hits (up to 1,024) to check the shared 
`MaxScoreAccumulator`.
   
   So in short, it exchanges a bit more work globally in favor of a bit less 
contention. A longer-term goal of mine is to stop specializing our 
`CollectorManager`s based on whether they are going to be used concurrently or 
not.


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