- Notifications
You must be signed in to change notification settings - Fork5
Commit0d76b60
committed
Various micro-optimizations for GetSnapshopData().
Heikki Linnakangas had the idea of rearranging GetSnapshotData toavoid checking for sub-XIDs when no top-level XID is present. Thispatch does that plus further a bit of further, related rearrangement.Benchmarking show a significant improvement on unlogged tables athigher concurrency levels, and mostly indifferent result on permanenttables (which are presumably bottlenecked elsewhere). Most of thebenefit seems to come from using the new NormalTransactionIdPrecedes()macro rather than the function call TransactionIdPrecedes().1 parenta4cd6ab commit0d76b60
2 files changed
+24
-17
lines changedLines changed: 20 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1324 | 1324 |
| |
1325 | 1325 |
| |
1326 | 1326 |
| |
1327 |
| - | |
| 1327 | + | |
1328 | 1328 |
| |
1329 | 1329 |
| |
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 | 1332 |
| |
1333 | 1333 |
| |
1334 |
| - | |
1335 |
| - | |
1336 |
| - | |
1337 |
| - | |
1338 |
| - | |
1339 |
| - | |
1340 |
| - | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1341 | 1338 |
| |
1342 |
| - | |
1343 |
| - | |
1344 |
| - | |
| 1339 | + | |
| 1340 | + | |
1345 | 1341 |
| |
1346 |
| - | |
1347 |
| - | |
1348 |
| - | |
1349 |
| - | |
1350 |
| - | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1351 | 1354 |
| |
1352 | 1355 |
| |
1353 | 1356 |
| |
| |||
1364 | 1367 |
| |
1365 | 1368 |
| |
1366 | 1369 |
| |
1367 |
| - | |
| 1370 | + | |
1368 | 1371 |
| |
1369 | 1372 |
| |
1370 | 1373 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
|
0 commit comments
Comments
(0)