Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BC86C9FB3BD for ; Sun, 24 Jun 2007 13:22:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 19278-05 for ; Sun, 24 Jun 2007 13:21:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by postgresql.org (Postfix) with ESMTP id 591A39FB2BE for ; Sun, 24 Jun 2007 13:21:57 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I2Uqa-0008E7-Bk for pgsql-jdbc@postgresql.org; Sun, 24 Jun 2007 09:21:56 -0700 Message-ID: <11276153.post@talk.nabble.com> Date: Sun, 24 Jun 2007 09:21:56 -0700 (PDT) From: aaime74 To: pgsql-jdbc@postgresql.org Subject: Re: Status of binary protocol usage? In-Reply-To: <18839.1182699652@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: andrea.aime@gmail.com References: <11275147.post@talk.nabble.com> <18839.1182699652@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.705 tagged_above=0 required=5 tests=AWL=0.704, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/87 X-Sequence-Number: 17149 Tom Lane-2 wrote: > > aaime74 writes: >> A profiler informs me that quite a big of time is spent in the >> PGBytea.toBytes(byte[]s) method, which is used only if the transfer >> occurrs in text mode. > > That hardly seems like a killer argument for switching to binary > (which has got a boatload of disadvantages of its own). Surely a > bit of code-optimization work can fix that. > Hum, interesting. What would be the boatload of disadvantages? Is there any reference to those? Do you have any idea why doing more processing (Base64 encoding/decoding) leads to significant better performance? :) Cheers Andrea -- View this message in context: http://www.nabble.com/Status-of-binary-protocol-usage--tf3972236.html#a11276153 Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.