In ReadOrZeroBuffer (and related entry points), don't bother to call
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 15:09:04 +0000 (15:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 15:09:04 +0000 (15:09 +0000)
commit153c219225b66d7e192f2f806e4db529eebc90db
treefc73ce6fa24873d14c825cae76df2ff70a9ff432
parent3a7693151abe50eee7d52b466d733f8523c0a000
In ReadOrZeroBuffer (and related entry points), don't bother to call
PageHeaderIsValid when we zero the buffer instead of reading the page in.
The actual performance improvement is probably marginal since this function
isn't very heavily used, but a cycle saved is a cycle earned.

Zdenek Kotala
src/backend/storage/buffer/bufmgr.c