[PATCH] heap_insert() and heap_update() optimization

Поиск
Список
Период
Сортировка
От Andrey Klychkov
Тема [PATCH] heap_insert() and heap_update() optimization
Дата
Msg-id 1539678497.898777998@f532.i.mail.ru
обсуждение исходный текст
Ответы Re: [PATCH] heap_insert() and heap_update() optimization
Список pgsql-hackers

Hello, hackers

I suggest the small attached patch that gives a bit of heap_insert() and heap_update() optimization
by reducing calls of BufferGetPage(buffer) into them.

I measured call time of these:
heap_insert(): avg origin 13394 ns, avg patched 12685 ns; perf increases +5.59%
heap_update(): avg origin 15728 ns, avg patched 13936 ns; perf increases +11.39%

This can be notable when there are handling many rows.
--
Regards,
Andrew K.

Вложения

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Function to promote standby servers
Следующее
От: John Naylor
Дата:
Сообщение: Re: WIP: Avoid creation of the free space map for small tables