Optimize numeric multiplication for one and two base-NBASE digit multiplicands.

Поиск
Список
Период
Сортировка
От Joel Jacobson
Тема Optimize numeric multiplication for one and two base-NBASE digit multiplicands.
Дата
Msg-id 44d2ffca-d560-4919-b85a-4d07060946aa@app.fastmail.com
обсуждение исходный текст
Ответы Re: Optimize numeric multiplication for one and two base-NBASE digit multiplicands.
Re: Optimize numeric multiplication for one and two base-NBASE digit multiplicands.
Список pgsql-hackers
Hello hackers,

Attached patch introduces an optimization of mul_var() in numeric.c, targeting cases where the multiplicands consist of
onlyone or two base-NBASE digits. Such small multiplicands can fit into an int64 and thus be computed directly,
resultingin a significant performance improvement, between 26% - 34% benchmarked on Intel Core i9-14900K.
 

This optimization is similar to commit d1b307eef2, that also targeted one and two base-NBASE digit operands, but
optimizeddiv_var().
 

Regards,
Joel
Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: Reuse child_relids in try_partitionwise_join was Re: Assert failure on bms_equal(child_joinrel->relids, child_joinrelids)
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] Fix docs to use canonical links