forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit779fdcd
committed
Improve new caching logic in tbm_add_tuples().
For no significant extra complexity, we can cache knowledge that thetarget page is lossy, and save a hash_search per iteration in thatcase as well. This probably makes little difference, since the extrarechecks that must occur when pages are lossy are way more expensivethan anything we can save here ... but we might as well do it if we'regoing to cache anything.1 parentf5ae3ba commit779fdcd
1 file changed
+18
-13
lines changedLines changed: 18 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
271 |
| - | |
272 |
| - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
273 | 274 |
| |
274 | 275 |
| |
275 | 276 |
| |
| |||
283 | 284 |
| |
284 | 285 |
| |
285 | 286 |
| |
286 |
| - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 |
| |
288 | 294 |
| |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
297 | 299 |
| |
298 | 300 |
| |
| 301 | + | |
| 302 | + | |
| 303 | + | |
299 | 304 |
| |
300 | 305 |
| |
301 | 306 |
| |
| |||
313 | 318 |
| |
314 | 319 |
| |
315 | 320 |
| |
316 |
| - | |
317 |
| - | |
| 321 | + | |
| 322 | + | |
318 | 323 |
| |
319 | 324 |
| |
320 | 325 |
| |
|
0 commit comments
Comments
(0)