]> granicus.if.org Git - postgresql/commit
Avoid unnecessary copying of source string when generating a cloned TParser.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Dec 2009 20:37:17 +0000 (20:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Dec 2009 20:37:17 +0000 (20:37 +0000)
commit21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a
tree0d8726756246849ce298ae68c90819f0303482e1
parenta5495cd8411b65de86a0ad5bf4e29a8e985eb677
Avoid unnecessary copying of source string when generating a cloned TParser.
For long source strings the copying results in O(N^2) behavior, and the
multiplier can be significant if wide-char conversion is involved.

Andres Freund, reviewed by Kevin Grittner.
src/backend/tsearch/wparser_def.c