Content-Length: 241542 | pFad | http://github.com/postgrespro/postgres/commit/aa2387e2fd532954e88dfd8546ab894b9305123d

D7 Improve speed of timestamp/time/date output functions. · postgrespro/postgres@aa2387e · GitHub
Skip to content

Commit aa2387e

Browse files
committed
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
1 parent b921aeb commit aa2387e

File tree

3 files changed

+424
-128
lines changed

3 files changed

+424
-128
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/aa2387e2fd532954e88dfd8546ab894b9305123d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy