diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-10-11 19:09:01 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-10-11 19:09:01 +0900 |
commit | 80f8eb79e24d9b7963eaf17ce846667e2c6b6e6f (patch) | |
tree | c5ac3c2938b9fd81f8319a44429817454375ce1d /src/tools/pgindent/exclude_file_patterns | |
parent | 85d08b8b721fb3b9359bca9325bc425cc95c30b1 (diff) |
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/tools/pgindent/exclude_file_patterns')
-rw-r--r-- | src/tools/pgindent/exclude_file_patterns | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/pgindent/exclude_file_patterns b/src/tools/pgindent/exclude_file_patterns index bfe103f1955..86bdd9d6dcb 100644 --- a/src/tools/pgindent/exclude_file_patterns +++ b/src/tools/pgindent/exclude_file_patterns @@ -18,6 +18,11 @@ src/backend/utils/fmgrprotos\.h$ # they match pgindent style, they'd look worse not better, so exclude them. kwlist_d\.h$ # +# This is generated by the scripts from src/common/unicode/. It uses +# hash functions generated by PerfectHash.pm whose format looks worse with +# pgindent. +src/include/common/unicode_normprops_table\.h$ +# # Exclude ecpg test files to avoid breaking the ecpg regression tests # (but include files at the top level of the ecpg/test/ directory). src/interfaces/ecpg/test/.*/ |