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 9F7B96765 for ; Mon, 13 Jun 2011 16:00:14 +0000 (UTC) Received: (qmail 26179 invoked by uid 500); 13 Jun 2011 16:00:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 26131 invoked by uid 500); 13 Jun 2011 16:00: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 26124 invoked by uid 99); 13 Jun 2011 16:00:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 16:00:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 16:00:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0D0E9417420 for ; Mon, 13 Jun 2011 15:59:52 +0000 (UTC) Date: Mon, 13 Jun 2011 15:59:52 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: <1016283169.2847.1307980792050.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1369133374.2523.1307970891737.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3196) Optimize FixedStraightBytes for bytes size == 1 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-3196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048615#comment-13048615 ] Simon Willnauer commented on LUCENE-3196: ----------------------------------------- bq. Do we have a test (eg a random test that picks random fixed byte[] size) that covers this...? yes the fixed length is selected at random in the tests I fixed that in the patch too. > Optimize FixedStraightBytes for bytes size == 1 > ----------------------------------------------- > > Key: LUCENE-3196 > URL: https://issues.apache.org/jira/browse/LUCENE-3196 > Project: Lucene - Java > Issue Type: Improvement > Components: core/index, core/search > Affects Versions: 4.0 > Reporter: Simon Willnauer > Assignee: Simon Willnauer > Priority: Minor > Fix For: 4.0 > > Attachments: LUCENE-3196.patch > > > Currently we read all the bytes in a PagedBytes instance wich is unneeded for single byte values like norms. For fast access this should simply be a straight array. -- This message is automatically generated by JIRA. 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