aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-07 18:03:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-07 18:03:48 +0000
commitf1b059af12673abf93ba13594799732bac83ed01 (patch)
tree822946b5d6f997eb31c5de4fd4a8adf11cd7ff72 /src/tutorial/funcs.c
parent10a2df28c0dc51ac579ba2239d5f4c55e56c37d1 (diff)
downloadpostgresql-f1b059af12673abf93ba13594799732bac83ed01.tar.gz
postgresql-f1b059af12673abf93ba13594799732bac83ed01.zip
A couple of tiny performance hacks in _bt_step(). Remove PageIsEmpty
checks, which were once needed because PageGetMaxOffsetNumber would fail on empty pages, but are now just redundant. Also, don't set up local variables that aren't needed in the fast path --- most of the time, we only need to advance offnum and not step across a page boundary. Motivated by noticing _bt_step at the top of OProfile profile for a pgbench run.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions