Skip site navigation (1) Skip section navigation (2)

pgsql: Avoid unnecessary copying of source string when generating a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid unnecessary copying of source string when generating a
Date: 2009-12-15 20:37:17
Message-ID: 20091215203717.A32A3753FB7@cvs.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Peter EisentrautDate: 2009-12-15 22:59:55
Subject: pgsql: Python 3 support in PL/Python Behaves more or less unchanged
Previous:From: Robert HaasDate: 2009-12-15 20:36:25
Subject: Re: pgsql: Add an EXPLAIN (BUFFERS) option to show buffer-usage statistics.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group