nknize commented on code in PR #12688:
URL: https://github.com/apache/lucene/pull/12688#discussion_r1382078005


##########
lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/lucene90/randomaccess/bitpacking/BitPacker.java:
##########


Review Comment:
   > I'm in the process of building the real compact bit packer.
   
   +1. I'm assuming that will be added to this PR?
   
   
   
   > The goal here is to pack a sequence of values that have different 
bitwidths... We can't use VLong either since we aim to write fixed size record, 
so that we can do random access
   
   Hmm.. I'll have to look deeper at this. The reason I ask is because I did a 
similar bit packing w/ "random access" when serializing the [ShapeDocValues 
binary 
tree](https://github.com/apache/lucene/blob/d6836d3d0e5d33a98b35c0885b9787f46c4be47e/lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java#L462C26-L462C26)
 and it feels like we often re-implement this logic in different forms for 
different use cases. Can we generalize this and lean out our code base to make 
it more useable and readable?



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