aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/parallel.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-06 23:11:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-06 23:11:28 -0500
commitaa2387e2fd532954e88dfd8546ab894b9305123d (patch)
treec58b1331597a50ad2cfc96b4fac5a81fde34f050 /src/backend/access/transam/parallel.c
parentb921aeb1676f128f2c41ddc40d3887964ea9eae9 (diff)
downloadpostgresql-aa2387e2fd532954e88dfd8546ab894b9305123d.tar.gz
postgresql-aa2387e2fd532954e88dfd8546ab894b9305123d.zip
Improve speed of timestamp/time/date output functions.
It seems that sprintf(), at least in glibc's version, is unreasonably slow compared to hand-rolled code for printing integers. Replacing most uses of sprintf() in the datetime.c output functions with special-purpose code turns out to give more than a 2X speedup in COPY of a table with a single timestamp column; which is pretty impressive considering all the other logic in that code path. David Rowley and Andres Freund, reviewed by Peter Geoghegan and myself
Diffstat (limited to 'src/backend/access/transam/parallel.c')
0 files changed, 0 insertions, 0 deletions