rmuir commented on PR #13364:
URL: https://github.com/apache/lucene/pull/13364#issuecomment-2107576749

   Can we do better than blindly prefetching skipdata? Currently, skipdata is 
not used until we advance() past doc in the first block: 
   
   
https://github.com/apache/lucene/blob/83db8dfba30447dc154efbf98a46048ebe5743ef/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99PostingsReader.java#L409
   
   Should we instead try to preload skipdata the first time advance() is 
actually called for the enum? This still happens before skipper might get used, 
because we might fullfill a few calls to advance() from the first block's docs, 
but I like that we have evidence now that skipper will most likely be needed. 
e.g. a one time invocation before this "if": 
https://github.com/apache/lucene/blob/83db8dfba30447dc154efbf98a46048ebe5743ef/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99PostingsReader.java#L502-L504
   
   
   


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