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


   If we want to add the `grow(long)` sugar method that simply truncates to 
`Integer.MAX_VALUE` and clean up all the points callsites, or write a cool 
FixedBitSet.approximateCardinality, just feel free to push commits here. 
Otherwise I will get to these two things later and remove draft status on the 
PR.
   
   Adding the sugar method is easy, it is just work.
   Implementing the approximateCardinality requires some thought and prolly 
some benchmarking. I had in mind to just "sample" some "chunks" of the long[] 
and sum up `Long.bitCount` across the ranges. In upcoming JDK this method will 
get vectorized, let's take advantage of that, so then both `cardinality()` and 
`approximateCardinality` would get faster: 
https://github.com/openjdk/jdk/pull/6857
   


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