1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Change appendStringInfoChar to appendStringInfoCharMacro in a couple of

hot spots --- buys about 10% in Verner's INSERT example.
This commit is contained in:
Tom Lane
2001-12-04 20:57:22 +00:00
parent c121efff7e
commit a0734d1eb1
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.125 2001/12/04 19:40:17 tgl Exp $
* $Id: pqcomm.c,v 1.126 2001/12/04 20:57:22 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -610,7 +610,7 @@ pq_getstring(StringInfo s)
/* Read until we get the terminating '\0' */
while ((c = pq_getbyte()) != EOF && c != '\0')
appendStringInfoChar(s, c);
appendStringInfoCharMacro(s, c);
if (c == EOF)
return EOF;