pgsql: Avoid unnecessary copying of source string when generating a - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Avoid unnecessary copying of source string when generating a
Date
Msg-id 20091215203717.A32A3753FB7@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/tsearch:
        wparser_def.c (r1.25 -> r1.26)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/wparser_def.c?r1=1.25&r2=1.26)

pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pgsql: Add an EXPLAIN (BUFFERS) option to show buffer-usage statistics.
Next
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Python 3 support in PL/Python Behaves more or less unchanged