X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 431D59FB1EA for ; Wed, 23 Aug 2006 16:55:28 -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 24114-08 for ; Wed, 23 Aug 2006 16:55:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web32004.mail.mud.yahoo.com (web32004.mail.mud.yahoo.com [68.142.207.101]) by postgresql.org (Postfix) with SMTP id E0BCD9F9B01 for ; Wed, 23 Aug 2006 16:55:19 -0300 (ADT) Received: (qmail 93083 invoked by uid 60001); 23 Aug 2006 19:55:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=G+YRGE/TanqRrBWZMkMDyAXljsewyT3+C1YgjwfNPDUM0+JxEwBuzYnkwqiHdyr3Xx9aeW2NqF+vLO/hYCI06/wuoon5seQ1CP46nJQjcsqfCdUyHg6cnbSzlqGimIz7dx/JPPOHepprg1HlbZfss8HGAc/8y7z5ow2c1pN8GXk= ; Message-ID: <20060823195511.93081.qmail@web32004.mail.mud.yahoo.com> Received: from [128.91.25.74] by web32004.mail.mud.yahoo.com via HTTP; Wed, 23 Aug 2006 12:55:11 PDT Date: Wed, 23 Aug 2006 12:55:11 -0700 (PDT) From: "j.random.programmer" Subject: Some simple JDBC profiling results To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.355 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: *** X-Archive-Number: 200608/108 X-Sequence-Number: 15635 Hi, just FYI. I ran a profiler recently on some java code (part of which was using the postgres JDBC driver) and saw the following hotspots within the driver: org.postgresql.core.Encoding.decode (line: 193) org.postgresql.core.Encoding.decode (line: 347) I think there might be excessive new String creation at those points cause those 2 lines really light up the profiler. Best regards, --j __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com