summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-10-11 19:09:01 +0900
committerMichael Paquier <michael@paquier.xyz>2020-10-11 19:09:01 +0900
commit80f8eb79e24d9b7963eaf17ce846667e2c6b6e6f (patch)
treec5ac3c2938b9fd81f8319a44429817454375ce1d /src/backend/access/gist/gistbuildbuffers.c
parent85d08b8b721fb3b9359bca9325bc425cc95c30b1 (diff)
downloadpostgresql-80f8eb79e24d9b7963eaf17ce846667e2c6b6e6f.tar.gz
Use perfect hash for NFC and NFKC Unicode Normalization quick check
This makes the normalization quick check about 30% faster for NFC and 50% faster for NFKC than the binary search used previously. The hash lookup reuses the existing array of bit fields used for the binary search to get the quick check property and is generated as part of "make update-unicode" in src/common/unicode/. 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/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions