pgsql: Clean up psql variable code a little: eliminate unnecessary tests

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Clean up psql variable code a little: eliminate unnecessary tests
Дата
Msg-id 20060621160511.CC3A39FA7BA@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Clean up psql variable code a little: eliminate unnecessary tests in
GetVariable() and be consistent about treatment of the list header.
Motivated by noticing strspn() taking an unreasonable percentage of
runtime --- the call removed from GetVariable() was the only one that
could be in a high-usage path ...

Modified Files:
--------------
    pgsql/src/bin/psql:
        variables.c (r1.24 -> r1.25)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/variables.c.diff?r1=1.24&r2=1.25)

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