pgsql: Avoid using text_to_cstring() in levenshtein functions. - Mailing list pgsql-committers

From rhaas@postgresql.org (Robert Haas)
Subject pgsql: Avoid using text_to_cstring() in levenshtein functions.
Date
Msg-id 20100729201148.AD8527541D5@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Avoid using text_to_cstring() in levenshtein functions.

Operating directly on the underlying varlena saves palloc and memcpy
overhead, which testing shows to be significant.

Extracted from a larger patch by Alexander Korotkov.

Modified Files:
--------------
    pgsql/contrib/fuzzystrmatch:
        fuzzystrmatch.c (r1.32 -> r1.33)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c?r1=1.32&r2=1.33)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Clean up some inconsistencies in the volatility marking of
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Update release notes for 9.0 beta 4.