Commit a6f6b78
committed
Use static inline function for BufferGetPage()
I was initially concerned that the some of the hundreds of
references to BufferGetPage() where the literal
BGP_NO_SNAPSHOT_TEST were passed might not optimize as well as a
macro, leading to some hard-to-find performance regressions in
corner cases. Inspection of disassembled code has shown identical
code at all inspected locations, and the size difference doesn't
amount to even one byte per such call. So make it readable.
Per gripes from Álvaro Herrera and Tom Lane1 parent 80647bf commit a6f6b78
2 files changed
+25
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4295 | 4295 | | |
4296 | 4296 | | |
4297 | 4297 | | |
4298 | | - | |
| 4298 | + | |
4299 | 4299 | | |
4300 | 4300 | | |
4301 | 4301 | | |
| |||
4311 | 4311 | | |
4312 | 4312 | | |
4313 | 4313 | | |
4314 | | - | |
4315 | | - | |
4316 | 4314 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 180 | | |
206 | 181 | | |
207 | 182 | | |
| |||
268 | 243 | | |
269 | 244 | | |
270 | 245 | | |
271 | | - | |
| 246 | + | |
272 | 247 | | |
273 | 248 | | |
274 | 249 | | |
275 | 250 | | |
276 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
277 | 275 | | |
0 commit comments