- Notifications
You must be signed in to change notification settings - Fork5
Commita6f6b78
committed
Use static inline function for BufferGetPage()
I was initially concerned that the some of the hundreds ofreferences to BufferGetPage() where the literalBGP_NO_SNAPSHOT_TEST were passed might not optimize as well as amacro, leading to some hard-to-find performance regressions incorner cases. Inspection of disassembled code has shown identicalcode at all inspected locations, and the size difference doesn'tamount to even one byte per such call. So make it readable.Per gripes from Álvaro Herrera and Tom Lane1 parent80647bf commita6f6b78
2 files changed
+25
-29
lines changedLines changed: 1 addition & 3 deletions
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 |
|
Lines changed: 24 additions & 26 deletions
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
Comments
(0)