[
https://issues.apache.org/jira/browse/LUCENE-4536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrien Grand updated LUCENE-4536:
---------------------------------
Attachment: LUCENE-4536.patch
New patch including Mike's suggestions:
- VERSION_LONG_ALIGNED renamed to VERSION_START,
- VERSION_CURRENT aliased to VERSION_BYTE_ALIGNED,
- added an assert that the sneaky direct reader impl can only be instantiated
if the stream has been produced with VERSION_START.
> Make PackedInts byte-aligned?
> -----------------------------
>
> Key: LUCENE-4536
> URL: https://issues.apache.org/jira/browse/LUCENE-4536
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Priority: Minor
> Fix For: 4.1
>
> Attachments: LUCENE-4536.patch, LUCENE-4536.patch
>
>
> PackedInts are more and more used to save/restore small arrays, but given
> that they are long-aligned, up to 63 bits are wasted per array. We should try
> to make PackedInts storage byte-aligned so that only 7 bits are wasted in the
> worst case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]