Re: [HACKERS] An unlikely() experiment

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] An unlikely() experiment
Дата
Msg-id 20171030093437.trvx4o62rexfr637@alap3.anarazel.de
обсуждение исходный текст
Ответ на An unlikely() experiment  (David Rowley <david.rowley@2ndquadrant.com>)
Ответы Re: [HACKERS] An unlikely() experiment  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
Hi,

On 2015-12-20 02:49:13 +1300, David Rowley wrote:
> Alternatively, if there was some way to mark the path as cold from within
> the path, rather than from the if() condition before the path, then we
> could perhaps do something in the elog() macro instead. I just couldn't
> figure out a way to do this.

I just was thinking about this, and it turns out that
__attribute__((cold)) does what we need here. We could just mark
elog_start() and errstart() as cold, and afaict that should do the
trick.

Thanks to Jakub from #gcc for pointing that out.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] git down
Следующее
От: David Rowley
Дата:
Сообщение: Re: [HACKERS] An unlikely() experiment