[ 
https://issues.apache.org/jira/browse/LUCENE-10205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17479157#comment-17479157
 ] 

Costin Leau commented on LUCENE-10205:
--------------------------------------

Linking an investigation that used VarHandle on Java 11/17 which overall showed 
decreased performance - full details at:
https://github.com/apache/lucene/pull/453

> 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
>            Priority: Minor
>
> 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.20.1#820001)

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

Reply via email to