aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2023-01-23 11:56:00 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2023-01-23 11:58:28 +0000
commit0aa38db56bf459d04ed58c22f7c689c0ae14e977 (patch)
tree474a0e6f46170362237b3a6b498be2434aa15a93 /src/backend/access/gist/gistxlog.c
parent009dbdea02d74c72db2d1a57d5299f94f91fa975 (diff)
downloadpostgresql-0aa38db56bf459d04ed58c22f7c689c0ae14e977.tar.gz
postgresql-0aa38db56bf459d04ed58c22f7c689c0ae14e977.zip
Optimise numeric division for 3 and 4 base-NBASE digit divisors.
On platforms with 128-bit integer support, introduce a new function div_var_int64(), along the same lines as div_var_int() added in d1b307eef2 for divisors with 1 or 2 base-NBASE digits, and use it to speed up div_var() and div_var_fast() in a similar way when the divisor has 3 or 4 base-NBASE digits. This gives significant performance gains for divisors with 9-16 decimal digits. Joel Jacobson. Discussion: https://postgr.es/m/b7a5893d-af18-4c0b-8918-96de5f1bbf39%40app.fastmail.com https://postgr.es/m/CAEZATCXGm%3DDyTq%3DFrcOqC0gPMVveKUYTaD5KRRoajrUTiWxVMw%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions