X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 34C908B9D39 for ; Tue, 22 Feb 2005 22:37:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39659-03 for ; Tue, 22 Feb 2005 22:37:03 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B99928B9B5D for ; Tue, 22 Feb 2005 22:37:05 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1D3ieL-0004hg-00; Wed, 23 Feb 2005 11:37:01 +1300 Message-ID: <421BB40B.50006@opencloud.com> Date: Wed, 23 Feb 2005 11:36:59 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ken Geis Cc: pgsql-jdbc@postgresql.org Subject: Re: Performance tweaks References: <421B0740.3050104@speakeasy.net> In-Reply-To: <421B0740.3050104@speakeasy.net> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/166 X-Sequence-Number: 12346 Ken Geis wrote: > The sneakier (and less > likely to be controversial) one was also in PGStream. I changed the line > > byte[][] answer = new byte[l_nf][0]; > to > byte[][] answer = new byte[l_nf][]; > > This gave ~1% increase on the benchmark I was running. I have applied this change (and some surrounding rearrangements to avoid an assignment in the null case, since the initial elements are already null) to CVS HEAD. -O