Re: TimestampUtils.toString() speedup

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: TimestampUtils.toString() speedup
Дата
Msg-id Pine.BSO.4.64.0703021259480.30573@leary.csoft.net
обсуждение исходный текст
Ответ на TimestampUtils.toString() speedup  (Alex Malone <amalone@heliumsystems.com>)
Список pgsql-jdbc

On Fri, 2 Mar 2007, Alex Malone wrote:

> Here is a small change that improved the performance of setting a
> timestamp field on a prepared statement from 0.513ms to 0.083ms in our
> tests.  Measured using JProfiler for 50,000 iterations. Essentially it
> is switching to use SimpleDateFormat for toString().  I believe this
> code is from the 8.1 408 driver.
>
>             pgdtf.format(cal.getTime(), sbuf, FIRSTPOS);

Doesn't this leave out the nanoseconds?  The Calendar won't have anything
below milliseconds.

Kris Jurka


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

Предыдущее
От: Alex Malone
Дата:
Сообщение: TimestampUtils.toString() speedup
Следующее
От: Alex Malone
Дата:
Сообщение: Re: TimestampUtils.toString() speedup