pgsql: A couple of tiny performance hacks in _bt_step().

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: A couple of tiny performance hacks in _bt_step().
Дата
Msg-id 20051207180348.DB1E39DCABF@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/access/nbtree:
        nbtsearch.c (r1.97 -> r1.98)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtsearch.c.diff?r1=1.97&r2=1.98)

В списке pgsql-committers по дате отправления:

Предыдущее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Update: < at initdb time or optionally later.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Push the responsibility for handling ignore_killed_tuples down