]> granicus.if.org Git - postgresql/commit
Avoid using text_to_cstring() in levenshtein functions.
authorRobert Haas <rhaas@postgresql.org>
Thu, 29 Jul 2010 20:11:48 +0000 (20:11 +0000)
committerRobert Haas <rhaas@postgresql.org>
Thu, 29 Jul 2010 20:11:48 +0000 (20:11 +0000)
commit980341b3c20b6b13cb1c06a501b0b49303f768e6
treef794947f2b9beb5a1deddb7bb4a0bd0109538446
parentaab353a60b95aadc00f81da0c6d99bde696c4b75
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.
contrib/fuzzystrmatch/fuzzystrmatch.c