Re: CPU costs of random_zipfian in pgbench

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CPU costs of random_zipfian in pgbench
Дата
Msg-id 19055.1554154745@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CPU costs of random_zipfian in pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: CPU costs of random_zipfian in pgbench  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> I was wondering about that too.  It seems like it'd be a wise idea to
>> further constrain s and/or n to ensure that the s > 1 code path doesn't do
>> anything too awful ...

> Yep. The attached version enforces s >= 1.001, which avoids the worse cost
> of iterating, according to my small tests.

Seems reasonable.  Pushed with minor documentation editing.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Fix XML handling with DOCTYPE
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: CPU costs of random_zipfian in pgbench