pgsql: Avoid using text_to_cstring() in levenshtein functions.

From: rhaas(at)postgresql(dot)org (Robert Haas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid using text_to_cstring() in levenshtein functions.
Date: 2010-07-29 20:11:48
Message-ID: 20100729201148.AD8527541D5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-07-29 21:18:11 pgsql: Update release notes for 9.0 beta 4.
Previous Message Tom Lane 2010-07-29 20:09:34 pgsql: Clean up some inconsistencies in the volatility marking of