]> granicus.if.org Git - postgresql/commit
Make some marginal performance improvements in reportErrorPosition(),
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Oct 2006 22:25:48 +0000 (22:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Oct 2006 22:25:48 +0000 (22:25 +0000)
commitdb2dcf58be1c15a5ce91396b3205fb982ee7a656
tree3ee16bae0902641b07d0ccb830e6718f8a66554f
parent8e4fe3ba1ed8aa6bfa59b99555d67a864a2bee84
Make some marginal performance improvements in reportErrorPosition(),
which turns out to be a dominant part of the runtime in scenarios
involving lots of parse-time warnings (such as Stephen Frost's example
of an INSERT with a lot of backslash-containing strings).  There's not
a whole lot we can do about the character-at-a-time scanning, but we
can at least avoid traversing the query twice.
src/interfaces/libpq/fe-protocol3.c