gf2121 commented on issue #12665:
URL: https://github.com/apache/lucene/issues/12665#issuecomment-1774050262

   > essentially calling OfflineSorter on all postings
   
   FYI, I came up with some ideas to optimize this sort before, hoping to be 
helpful :)
   
   1. If we use a stable sorter, we can only compare docIds because termIds are 
already in order.
   2. If we take the maxDoc into consideration, we can save 1 round of reorder 
when `maxDoc < (1 << 24)`.
   3. We may even purely use an offline version of radix sorter to sort the 
whole file, since all we need is just 3 or 4 times reorder based on point 1 and 
2.
   


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