pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: till toenges <tt@kyon.de>
To: pgsql-jdbc@postgresql.org
Subject: Re: Some more profiling hotspots
Date: Thu, 24 Aug 2006 05:24:27 +0200
Message-ID: <44ED1BEB.8020705@kyon.de> (raw)
In-Reply-To: <20060824030342.82518.qmail@web32003.mail.mud.yahoo.com>
References: <20060824030342.82518.qmail@web32003.mail.mud.yahoo.com>
j.random.programmer wrote:
> consistently get very high usage, via new string
> creation in the:
>
> org.postgresql.core.Encoding.decode
>
> method.
Doesn't look like like there is much room for optimization. The jvm may
spend a lot of time in this method because it is called often.
public String decode(byte[] encodedString, int offset, int length)
throws IOException
{
if (encoding == null)
return new String(encodedString, offset, length);
return new String(encodedString, offset, length, encoding); }
public String decode(byte[] encodedString) throws IOException
{
return decode(encodedString, 0, encodedString.length);
}
Till
view thread (6+ messages) latest in thread
Message-ID: <44ED1BEB.8020705@kyon.de> Permalink: ../44ED1BEB.8020705@kyon.de/ Also on: postgresql.org/message-id/44ED1BEB.8020705@kyon.de ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-jdbc@postgresql.org Cc: tt@kyon.de Subject: Re: Some more profiling hotspots In-Reply-To: <44ED1BEB.8020705@kyon.de> References: <20060824030342.82518.qmail@web32003.mail.mud.yahoo.com> <44ED1BEB.8020705@kyon.de> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox