lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4536) Make PackedInts byte-aligned?
Date Mon, 05 Nov 2012 13:34:13 GMT


Adrien Grand updated LUCENE-4536:

    Attachment: LUCENE-4536.patch

Patch. I added a test so that two assumptions that were made by callers are still true, even
if you are reading packed ints streams generated with 4.0 with this patch applied:
 - after reading all values of a Readeriterator, the IndexInput is positioned at the end of
the stream,
 - after reading the last value of a direct Reader, the IndexInput is positioned at the end
of the stream.
> Make PackedInts byte-aligned?
> -----------------------------
>                 Key: LUCENE-4536
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 4.1
>         Attachments: 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message