diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-11-04 15:28:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-11-04 15:28:35 -0400 |
commit | 09211659d9d8fd62f9de09703c90ed4f072c4a47 (patch) | |
tree | 34e3afdb95e2fdd71417f0d12ac3dcd87dd7a74c /src/backend/access/gist/gist.c | |
parent | 034967bdcbb0c7be61d0500955226e1234ec5f04 (diff) | |
download | postgresql-09211659d9d8fd62f9de09703c90ed4f072c4a47.tar.gz postgresql-09211659d9d8fd62f9de09703c90ed4f072c4a47.zip |
Use appendStringInfoString() where appropriate in elog.c.
The nominally equivalent call appendStringInfo(buf, "%s", str) can be
significantly slower when str is large. In particular, the former usage in
EVALUATE_MESSAGE led to O(N^2) behavior when collecting a large number of
context lines, as I found out while testing recursive functions. The other
changes are just neatnik-ism and seem unlikely to save anything meaningful,
but a cycle shaved is a cycle earned.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions