atris commented on issue #754: LUCENE-8875: Introduce Optimized Collector For 
Large Number Of Hits
URL: https://github.com/apache/lucene-solr/pull/754#issuecomment-508804369
 
 
   
   > Actually I don't think we need a growable priority queue. For such large 
number of hits it'd be probably more efficient to collect hits in an ArrayList 
first and only turn it into a PQ once there are `numHits` hits?
   
   Would that mean collecting all hits in the ArrayList, building a heap out of 
them iteratively once we exhaust documents and then calling top() numHits times?
   
   
   

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