Refactor convert_case() to prepare for optimizations.
Jeff Davis <jdavis@postgresql.org>
Refactor convert_case() to prepare for optimizations. Upcoming optimizations will add complexity to convert_case(). This patch reorganizes slightly so that the complexity can be contained within the logic to convert the case of a single character, rather than mixing it in with logic to iterate through the string. Reviewed-by: Alexander Borisov <lex.borisov@gmail.com> Discussion: https://postgr.es/m/44005c3d-88f4-4a26-981f-fd82dfa8e313@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/common/unicode_case.c | modified | +101 −52 |
Discussion
- Optimization for lower(), upper(), casefold() functions. 33 messages · 2025-01-29 → 2025-03-18