Re: Dynamically loaded C function performance

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Dynamically loaded C function performance
Дата
Msg-id 20060511220523.GT99570@pervasive.com
обсуждение исходный текст
Ответ на Dynamically loaded C function performance  ("Adam Palmblad" <apalmblad@dataunison.com>)
Ответы Re: Dynamically loaded C function performance
Список pgsql-performance
On Fri, May 05, 2006 at 03:47:53PM -0700, Adam Palmblad wrote:
> Hi,
> We've got a C function that we use here and we find that for every
> connection, the first run of the function is much slower than any
> subsequent runs.  ( 50ms compared to 8ms)
>
> Besides using connection pooling, are there any options to improve
> performance?

In my experience, connection startup takes a heck of a lot longer than
50ms, so why are you worrying about 50ms for the first run of a
function?

BTW, sorry, but I don't know a way to speed this up, either.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: slow variable against int??
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Assistance with optimizing query - same SQL, different category_id = Seq Scan