pgsql: Increase the initial size of StringInfo buffers to 1024 bytes

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Increase the initial size of StringInfo buffers to 1024 bytes
Дата
Msg-id 20070812201807.0DF7D754258@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Increase the initial size of StringInfo buffers to 1024 bytes (from 256);
likewise increase the initial size of the scanner's literal buffer to 1024
(from 128).  Instrumentation of the regression tests suggests that this
saves a useful amount of repalloc() traffic --- the number of calls occurring
during one set of tests drops from about 6900 to about 3900.  The old sizes
were chosen in the late 90's with an eye to machines much smaller than
are common today.

Modified Files:
--------------
    pgsql/src/backend/lib:
        stringinfo.c (r1.46 -> r1.47)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/lib/stringinfo.c?r1=1.46&r2=1.47)
    pgsql/src/backend/parser:
        scan.l (r1.139 -> r1.140)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/scan.l?r1=1.139&r2=1.140)

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

Предыдущее
От: pgunittest@pgfoundry.org (User Pgunittest)
Дата:
Сообщение: pgunittest - pgUnitTest_Dev:
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Remove an "optimization" I installed in 2001, to make repalloc()