Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DDB159FB376 for ; Fri, 6 Oct 2006 14:27:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 93425-04 for ; Fri, 6 Oct 2006 14:26:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id F226B9FB367 for ; Fri, 6 Oct 2006 14:26:58 -0300 (ADT) Received: (qmail 3298 invoked by uid 1112); 6 Oct 2006 17:26:58 -0000 Date: Fri, 6 Oct 2006 12:26:58 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Mikko Tiihonen cc: pgsql-jdbc@postgresql.org Subject: Re: Query ResultSet parsing speedup patch (resend) In-Reply-To: <1159567273.19055.7.camel@dual.local> Message-ID: References: <1159567273.19055.7.camel@dual.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/42 X-Sequence-Number: 15925 On Sat, 30 Sep 2006, Mikko Tiihonen wrote: > This is a resend since I did not get any feedback to this patch when I > sent it two months ago. Could someone at least have some recommendations > what I should do to get this patch evaluated or even applied to the > official source. > I like the change to use VisibleBufferedInputStream. That's a clean way of avoiding copies. I don't particularly like the number parsing changes as they're a pretty ugly hack, but I can't deny the performance improvements (I saw 30-35%). I plan on applying this unless someone objects. One bug I found was that you have the wrong bytes.length check in getFastInt. It can handle one more byte than you specified. Kris Jurka