Heikki Linnakangas wrote:
Andrew Dunstan wrote:
I'm still a bit worried about applying it unless it gets some
adaptive behaviour or something so that we don't cause any serious
performance regressions in some cases.
I'll try to come up with something. At the most conservative end, we
could fall back to the current method on the first escape, quote or
backslash character.
Also, could we perhaps benefit from inlining some calls, or is your
compiler doing that anyway?
gcc does inline all static functions that are only called from one
site, and small functions, using some heuristic. I don't think more
aggressive inlining would help.
Another question that occurred to me - did you try using strpbrk() to
look for the next interesting character rather than your homegrown
searcher gadget? If so, how did that perform?
cheers
andrew
--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches