From dev-return-113808-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Mon Nov 5 13:34:15 2012 Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78360D3B9 for ; Mon, 5 Nov 2012 13:34:15 +0000 (UTC) Received: (qmail 71168 invoked by uid 500); 5 Nov 2012 13:34:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 71012 invoked by uid 500); 5 Nov 2012 13:34:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 70976 invoked by uid 99); 5 Nov 2012 13:34:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 13:34:13 +0000 Date: Mon, 5 Nov 2012 13:34:13 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: <1739099479.68718.1352122453360.JavaMail.jiratomcat@arcas> In-Reply-To: <35350539.66538.1352069892281.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (LUCENE-4536) Make PackedInts byte-aligned? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org