Re: Some more profiling hotspots

Поиск
Список
Период
Сортировка
От till toenges
Тема Re: Some more profiling hotspots
Дата
Msg-id 44ED1BEB.8020705@kyon.de
обсуждение исходный текст
Ответ на Re: Some more profiling hotspots  ("j.random.programmer" <javadesigner@yahoo.com>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Some more profiling hotspots
Следующее
От: "j.random.programmer"
Дата:
Сообщение: Re: Some more profiling hotspots