Linux likely() unlikely() for PostgreSQL

Поиск
Список
Период
Сортировка
От wenhui qiu
Тема Linux likely() unlikely() for PostgreSQL
Дата
Msg-id CAGjGUAKTON7s20zBxzn+SMAM-Ruv-kR17CsuM9uEmGebfh5igA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Linux likely() unlikely() for PostgreSQL  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Список pgsql-hackers
Hi Hackers
   When I saw this document:https://en.wikipedia.org/wiki/Branch_predictor, I thought of Linux likely() vs unlikely() and thus thought that there are some code segments in src/backend/executor/execMain.c that can be optimized.
For example :
if (ExecutorStart_hook)
(*ExecutorStart_hook) (queryDesc, eflags);
else
standard_ExecutorStart(queryDesc, eflags);
}
void
ExecutorRun(QueryDesc *queryDesc,
ScanDirection direction, uint64 count,
bool execute_once)
{
if (ExecutorRun_hook)
(*ExecutorRun_hook) (queryDesc, direction, count, execute_once);
else
standard_ExecutorRun(queryDesc, direction, count, execute_once);
}
###
if (unlikely(ExecutorRun_hook)),

I hope to get guidance from community experts,Many thanks

Thanks

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Extension using Meson as build system
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: Linux likely() unlikely() for PostgreSQL