OSDN Git Service

Replace pq_getbytes(&ch, 1) calls with pq_getbyte(), which is easier
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Dec 2001 19:40:17 +0000 (19:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Dec 2001 19:40:17 +0000 (19:40 +0000)
commitf4bd04bb67c5da67b4fc35aa4da4ac47cff4cd66
tree60021bf58981f978795048a26038ab07702a9940
parentdae887abfe54b10820e03f0de82542306d825b00
Replace pq_getbytes(&ch, 1) calls with pq_getbyte(), which is easier
to use and significantly faster.  This tweak saves 25% (!) of the runtime
of COPY IN in a test with 8000-character lines.  I wouldn't normally
commit a performance improvement this late in the cycle, but 25% got
my attention...
src/backend/commands/copy.c
src/backend/libpq/pqcomm.c
src/backend/tcop/postgres.c
src/include/libpq/libpq.h