Increase the initial size of StringInfo buffers to 1024 bytes (from 256);
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Aug 2007 20:18:06 +0000 (20:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Aug 2007 20:18:06 +0000 (20:18 +0000)
commit408a86b0dc6f1fdd582b64857c2568150afbe4d5
tree38136c928a1fa82cc45050bb889224af452252b7
parent7fd4b55b5aab0cc9b99a147921601835234e8c2e
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.
src/backend/lib/stringinfo.c
src/backend/parser/scan.l