Re: Greatest Common Divisor

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Greatest Common Divisor
Дата
Msg-id CA+TgmoaQXaOZtH-WcwMKbBOiiWtBvrw3giVN+XOvYieXG8QUXg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Greatest Common Divisor  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: Greatest Common Divisor
Список pgsql-hackers
On Sat, Jan 4, 2020 at 4:21 PM Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> In GCD implementations, for instance:
>
>   if (arg1 == PG_INT32_MIN)
>   if (arg2 == 0 || arg2 == PG_INT32_MIN)
>
> And possibly a "likely" on the while.

I don't think decoration the code with likely() and unlikely() all
over the place is a very good idea. Odds are good that we'll end up
with a bunch that are actually non-optimal, and nobody will ever
figure it out because it's hard to figure out. I have a hard time
believing that we're going to be much worse off if we just write the
code normally.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Rafia Sabih
Дата:
Сообщение: Re: adding partitioned tables to publications
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: [Proposal] Global temporary tables