[ 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 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: 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 > > > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org