diff options
author | John Naylor <john.naylor@postgresql.org> | 2021-08-12 09:08:56 -0400 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2021-08-12 09:08:56 -0400 |
commit | ba958299eaf3d2f55bddb8efb037091d14ca6fd0 (patch) | |
tree | c07e6f3af511c093a2afe2f8c807046ecea1c06c /src/backend/executor/nodeModifyTable.c | |
parent | b05f7ecec44be22f6de703e5afdeb4ff3559315a (diff) | |
download | postgresql-ba958299eaf3d2f55bddb8efb037091d14ca6fd0.tar.gz postgresql-ba958299eaf3d2f55bddb8efb037091d14ca6fd0.zip |
Speed up generation of Unicode hash functions.
Sets of Unicode keys are picky about the primes used when generating
a perfect hash function for them. Callers can spend many seconds
iterating through all the possible combinations of candidate
multipliers and seeds to find one that works.
Unicode updates typically happen only once a year, but it still makes
development and testing of Unicode scripts unnecessarily slow. To fix,
iterate over the primes in the innermost loop. This does not change
any existing functions checked into the tree.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions