- Notifications
You must be signed in to change notification settings - Fork5
Commit402bd49
committed
Improve the way in which CatalogCacheComputeHashValue combines multiple key
values: don't throw away perfectly good hash bits, and increase the shiftdistances so as to provide more separation in the common case where some ofthe key values are small integers (and so their hashes are too, becausehashfunc.c doesn't try all that hard). This reduces the runtime ofSearchCatCache by a factor of 4 in an example provided by Greg Stark,in which the planner spends a whole lot of time searching the two-keySTATRELATT cache. It seems unlikely to hurt in other cases, but maybewe could do even better?1 parent11da4c6 commit402bd49
1 file changed
+16
-8
lines changedLines changed: 16 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| 161 | + | |
161 | 162 |
| |
162 | 163 |
| |
163 | 164 |
| |
| |||
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
170 |
| - | |
| 171 | + | |
171 | 172 |
| |
172 |
| - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 |
| |
174 | 177 |
| |
175 |
| - | |
| 178 | + | |
176 | 179 |
| |
177 |
| - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 |
| |
179 | 184 |
| |
180 |
| - | |
| 185 | + | |
181 | 186 |
| |
182 |
| - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 |
| |
184 | 191 |
| |
185 |
| - | |
| 192 | + | |
186 | 193 |
| |
187 | 194 |
| |
| 195 | + | |
188 | 196 |
| |
189 | 197 |
| |
190 | 198 |
| |
|
0 commit comments
Comments
(0)