- Notifications
You must be signed in to change notification settings - Fork5k
Commit2904324
committed
heapam: Only set tuple's block once per page in pagemode
Due to splitting the block id into two 16 bit integers, BlockIdSet()is more expensive than one might think. Doing it once per returnedtuple shows up as a small but reliably reproducible cost. It's simpleenough to set the block number just once per block in pagemode, so doso.Author: Andres Freund <andres@anarazel.de>Discussion:https://www.postgresql.org/message-id/lxzj26ga6ippdeunz6kuncectr5gfuugmm2ry22qu6hcx6oid6@lzx3sjsqhmt61 parentaf0c248 commit2904324
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1052 | 1052 |
| |
1053 | 1053 |
| |
1054 | 1054 |
| |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1055 | 1058 |
| |
1056 | 1059 |
| |
1057 | 1060 |
| |
| |||
1067 | 1070 |
| |
1068 | 1071 |
| |
1069 | 1072 |
| |
1070 |
| - | |
| 1073 | + | |
1071 | 1074 |
| |
1072 | 1075 |
| |
1073 | 1076 |
| |
|
0 commit comments
Comments
(0)