pgsql: Make abbreviated key comparisons for text a bit cheaper.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Make abbreviated key comparisons for text a bit cheaper.
Дата
Msg-id E1Zkd4r-0005qb-Kw@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make abbreviated key comparisons for text a bit cheaper.

If we do some byte-swapping while abbreviating, we can do comparisons
using integer arithmetic rather than memcmp.

Peter Geoghegan, reviewed and slightly revised by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bfb54ff15a447fb22e9deae096e0d45b3e4bd56f

Modified Files
--------------
src/backend/utils/adt/varlena.c |   29 ++++++++++++++++++++---------
src/include/port/pg_bswap.h     |   26 ++++++++++++++++++++++++--
2 files changed, 44 insertions(+), 11 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Remove set_latch_on_sigusr1 flag.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Perform an immediate shutdown if the postmaster.pid file is remo