rmuir commented on pull request #557:
URL: https://github.com/apache/lucene/pull/557#issuecomment-999482656


   > I like this change, it's a net win that is not only going to speed up 
binary doc values but also sorted set and sorted numeric doc values, which also 
use a direct monotonic reader to map doc IDs to value indexes? 
`DirectMonotonicReader#binarySearch` uses a similar idea to avoid doing the 
same operation over and over again. Let's update this pull request to limit the 
impact to the API to DirectMonotonicReader, since it's the only LongValues impl 
where we ever need to read two consecutive values at the same time?
   
   I guess I see it as optimizing corner cases, which is why improvements 
aren't reflected in the current luceneutil benchmarks? But as I mentioned, my 
biggest concern is adding stuff to `LongValues` api for this, IMO it isn't 
justified. I also am not a fan of doubling the compression logic for every BPV. 
But I'm not personally going to block the change, just please help out on the 
LongValues api part, and I'd like to see some realistic use-cases where we have 
benchmarks that it speeds things up.
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to