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