Adrien Grand created LUCENE-10205:
-------------------------------------

             Summary: Should Packed64 use a byte[] plus VarHandles?
                 Key: LUCENE-10205
                 URL: https://issues.apache.org/jira/browse/LUCENE-10205
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Adrien Grand


By being backed by a long[], Packed64 often has to merge bits coming from two 
different longs. If it was backed by a byte[], it could always read a single 
long, which would help remove conditionals?

The main downside is that we'd need paging to support high value counts with 
high numbers of bits (when value_count * bits_per_value / 8 > 
ArrayUtil.MAX_ARRAY_LENGTH).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to