diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-15 20:37:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-15 20:37:17 +0000 |
commit | 21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a (patch) | |
tree | 0d8726756246849ce298ae68c90819f0303482e1 /src/backend/utils/adt/enum.c | |
parent | a5495cd8411b65de86a0ad5bf4e29a8e985eb677 (diff) | |
download | postgresql-21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a.tar.gz postgresql-21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/enum.c')
0 files changed, 0 insertions, 0 deletions