diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-10-08 13:16:43 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-10-08 13:16:43 +0900 |
commit | 2a7316458164369436e252e5e60a5957b17103c3 (patch) | |
tree | fa8d6146827c6e1777a0a44861080780e3c7e162 /src/backend/utils/adt/numeric.c | |
parent | 98681675002d852d926a49d7bc4d4b4856b2fc4a (diff) | |
download | postgresql-2a7316458164369436e252e5e60a5957b17103c3.tar.gz postgresql-2a7316458164369436e252e5e60a5957b17103c3.zip |
Improve set of candidate multipliers for perfect hash function generation
The previous set of multipliers was not adapted for large sets of short
keys, and this new set of multipliers allows to generate perfect hash
functions for larger sets without having an impact for existing callers
of those functions, as experimentation has showed. A future commit will
make use of that to improve the performance of unicode normalization.
All multipliers compile to shift-and-add instructions on most platforms.
This has been tested as far back as gcc 4.1 and clang 3.8.
Author: John Naylor
Reviewed-by: Mark Dilger, Michael Paquier
Discussion: https://postgr.es/m/CACPNZCt4fbJ0_bGrN5QPt34N4whv=mszM0LMVQdoa2rC9UMRXA@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions