forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitba95829
committed
Speed up generation of Unicode hash functions.
Sets of Unicode keys are picky about the primes used when generatinga perfect hash function for them. Callers can spend many secondsiterating through all the possible combinations of candidatemultipliers and seeds to find one that works.Unicode updates typically happen only once a year, but it still makesdevelopment and testing of Unicode scripts unnecessarily slow. To fix,iterate over the primes in the innermost loop. This does not changeany existing functions checked into the tree.1 parentb05f7ec commitba95829
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 |
| - | |
93 |
| - | |
| 92 | + | |
94 | 93 |
| |
95 |
| - | |
| 94 | + | |
96 | 95 |
| |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
|
0 commit comments
Comments
(0)