Re: Some improvements to numeric sqrt() and ln()

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: Some improvements to numeric sqrt() and ln()
Дата
Msg-id CAEZATCVOMC6QpFehBM8oQBa8bx+P1ptWjefgN75iXUnc=jkEQw@mail.gmail.com
обсуждение исходный текст
Ответ на Some improvements to numeric sqrt() and ln()  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: Some improvements to numeric sqrt() and ln()  (Tels <nospam-pg-abuse@bloodgate.com>)
Список pgsql-hackers
On Fri, 28 Feb 2020 at 08:15, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> It's possible that there are further gains to be had in the sqrt()
> algorithm on platforms that support 128-bit integers, but I haven't
> had a chance to investigate that yet.
>

Rebased patch attached, now using 128-bit integers for part of
sqrt_var() on platforms that support them. This turned out to be well
worth it (1.5 to 2 times faster than the previous version if the
result has less than 30 or 40 digits).

Regards,
Dean

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: partition routing layering in nodeModifyTable.c
Следующее
От: Noah Misch
Дата:
Сообщение: Re: [HACKERS] WAL logging problem in 9.4.3?