From java-user-return-45359-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Tue Mar 09 13:59:48 2010 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 42467 invoked from network); 9 Mar 2010 13:59:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Mar 2010 13:59:48 -0000 Received: (qmail 977 invoked by uid 500); 9 Mar 2010 13:59:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 955 invoked by uid 500); 9 Mar 2010 13:59:19 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 947 invoked by uid 99); 9 Mar 2010 13:59:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Mar 2010 13:59:19 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ctlaux@googlemail.com designates 209.85.220.220 as permitted sender) Received: from [209.85.220.220] (HELO mail-fx0-f220.google.com) (209.85.220.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Mar 2010 13:59:18 +0000 Received: by fxm20 with SMTP id 20so7133368fxm.12 for ; Tue, 09 Mar 2010 05:58:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oofCMzEi/OKWzuEO/IdnxyF9166sBRYms6pNlpEqRRA=; b=xYWMeBlw1UtbtiWKJkuME859+xgfANDYqxufilVkE47fdLKf074xevh2VdO2bwNZoA ikC10EN6D+mKknX3C5vagU1WSX7WxDSdLpRjuLuEti7RqPxuvfHV+dgIFcwrqlTWYSkq dAAyUN+wbYpfAbLJOc6FTW9k46eF46tt6UQ7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=EKJABbfEHDT76UNwYrH0FeGPoc0/ZOcn7mwYYlI4ihhah7tbQ633cgU0w09eofTACj FzTwPMTPLmZd2jrrXU7m0iFgLShC1ya5GQx4eyNMswlRHPKRX6VoLRWHWbUPDGZGTmzu tMPMHtvoFK70UNLGGPt29Sa2OWz/hdLfFh+zg= MIME-Version: 1.0 Received: by 10.239.187.131 with SMTP id l3mr586130hbh.104.1268143136523; Tue, 09 Mar 2010 05:58:56 -0800 (PST) In-Reply-To: <9ac0c6aa1003081052gd0d7151i15bda0a51b6a4758@mail.gmail.com> References: <3ae4d85a1003081018m33a3295fyd5ef642df37496dc@mail.gmail.com> <9ac0c6aa1003081052gd0d7151i15bda0a51b6a4758@mail.gmail.com> Date: Tue, 9 Mar 2010 14:58:56 +0100 Message-ID: <3ae4d85a1003090558y19d1b229p63589ab65f3a7797@mail.gmail.com> Subject: Re: memory management style From: Christopher Laux To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Mar 8, 2010 at 7:52 PM, Michael McCandless wrote: > This was done for performance (to remove alloc/init/GC load). > > There are two parts to it -- first, consolidating what used to be lots > of little objects into shared byte[]/int[] blocks. =A0Second, reusing > those blocks. Thanks, just one more question: does anyone know why these are two-dimensional arrays? It seems more trouble than a one-dimensional array and I don't see the benefit -Chris --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org