Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16 - Mailing list pgsql-hackers

From Dean Rasheed
Subject Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16
Date
Msg-id CAEZATCXvFbTMSyYEgacO33_sQVbrSNJvEYBuwAjdyftpZToaaQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16  ("Joel Jacobson" <joel@compiler.org>)
List pgsql-hackers
On Sun, 22 Jan 2023 at 22:49, Joel Jacobson <joel@compiler.org> wrote:
>
> Many thanks for feedback. Nice catch! New patch attached.
>

Cool, that resolves the performance issues I was seeing for smaller
divisors (which also had a noticeable impact on the numeric_big
regression test).

After some more testing, the gains look good to me, and I wasn't able
to find any cases where it made things slower, so I've gone ahead and
pushed it.

Regards,
Dean



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16
Next
From: Amit Kapila
Date:
Subject: Re: Time delayed LR (WAS Re: logical replication restrictions)