Re: Performance problem iterating a resultset

Поиск
Список
Период
Сортировка
Искать
От
Teofilis Martisius
Тема
Re: Performance problem iterating a resultset
Дата
Msg-id
20021018191840.GA3650@teohome.lzua.lt
Ответ на
Список
Дерево обсуждения
Performance problem iterating a resultset Riyaz@umapinc.com
Re: Performance problem iterating a resultset Dave Cramer <Dave@micro-automation.net>
Re: Performance problem iterating a resultset Teofilis Martisius <teo@teohome.lzua.lt>
Re: Performance problem iterating a resultset "G.Nagarajan" <gnagarajan@dkf.de>
Hi,

While testing PostgreSQL JDBC I have noticed that it uses byte[]->String
conversion everywhere via 'new String(byte[], encoding)' constructor. I
found the implementation of that constructor painfully slow at least in
Sun's JDK 1.3.1 and 1.4.0, a bit better in gcj 3.2.  I have made a patch
that uses my own UTF-8 Unicode byte[]->String constructor and it speeds
up iterating a resultset ~1.5-2x on Sun's JDK.

Please confirm if anyone has similar experience. I will post the patch
to this mailing list if you are interested in it. Too bad it only works
with Unicode databases, and uses the default String constructor for other
character codings.

Teofilis Martisius,
teo@teohome.lzua.lt
В списке pgsql-jdbc по дате отправления
От: Nic Ferrier
Дата:
От: Barry Lind
Дата:
FAQ