You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Adrien Grand (Jira)" <ji...@apache.org> on 2021/10/26 14:12:00 UTC

[jira] [Created] (LUCENE-10205) Should Packed64 use a byte[] plus VarHandles?

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org