Avoid using text_to_cstring() in levenshtein functions.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/fuzzystrmatch/fuzzystrmatch.c | modified | +11 −11 |