Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5A0EA9FA4AD for ; Sat, 28 Oct 2006 23:23:33 -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 57402-02 for ; Sat, 28 Oct 2006 23:23:29 -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 968A39F9F0A for ; Sat, 28 Oct 2006 23:23:28 -0300 (ADT) Received: (qmail 19123 invoked by uid 1112); 29 Oct 2006 02:23:27 -0000 Date: Sat, 28 Oct 2006 21:23:27 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Julien Patrouix cc: Bucky Jordan , Simon Riggs , pgsql-jdbc@postgresql.org Subject: Re: jdbc driver performance TODO In-Reply-To: <45433C4B.6020300@genoscope.cns.fr> Message-ID: References: <78ED28FACE63744386D68D8A9D1CF5D4209E10@MAIL.corp.lumeta.com> <45433C4B.6020300@genoscope.cns.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed Content-ID: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.052 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/127 X-Sequence-Number: 16010 On Sat, 28 Oct 2006, Julien Patrouix wrote: > In my opinion, improvements could be made in the encoding/decoding of the > protocole messages (Ie the PGStream class). > From what I have seen thanks to a profiler some methods are over invoked, and > the numeric encoding is not as efficient as it could be. > That numeric encoding/decoding is used very often, even for the protocole > purposes, not only for data encoding. > > Furthermore, it would be interesting not to use the java BufferedStream > implementation, and use a specific one so as to directly manage and access > the buffer. This is what Mikko Tiihonen has done here and I intend to apply it next week. http://archives.postgresql.org/pgsql-jdbc/2006-09/msg00163.php > I use a driver I have optimized, and submitted these obervations a couple of > time to the list, but I'm really sorry I can't contribute more for a long > time I'm afraid I've never seen a patch come across this list. Could you retry or point me to an archives entry? Kris Jurka