atris commented on issue #854: Shared PQ Based Early Termination for Concurrent 
Search
URL: https://github.com/apache/lucene-solr/pull/854#issuecomment-530678743
 
 
   > > RE: synchronization, what are your thoughts on using a global shared 
array where each collector publishes its bottom value vs message passing?
   > 
   > Sure that's a good way to keep track of the maximum minimum score without 
synchronization.
   > However I think only benchmark can reveal the cost of this so my main 
concern is the change in the API that is required to share the minimum score 
globally. If we can come up with an approach that keeps the current top score 
docs collector simple and contained but isn't optimized in terms of 
synchronization I'd favor simplicity unless we have clear evidence in 
benchmarks that we can do better ;).
   
   @jimczi , RE: message passing, I am not sure how it would work efficiently. 
Would we want each collector to maintain its own message queue, and then a 
collector, in order to publish a bottom value, sends a message to every 
collector's queue? or do we have a global shared message queue?
   
   I was thinking of a class similar to HitsThresholdChecker, allowing shared 
state, since, as you rightly said, the size of critical section should be 
small. WDYT?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to