URL:
https://github.com/SSSD/sssd/pull/5307
Title: #5307: UTIL:utf8: code cleanup
alexey-tikhonov commented:
"""
While the "form" of those patches might be a topic to discuss, the main point is
the following:
Originally execution flow was:
```
sss_tc_utf8_str_tolower() -> `sss_tc_utf8_tolower()` + talloc_realloc()
-> sss_utf8_tolower() + talloc_memdup()
-> g_utf8_strdown() + memcpy()
```
-- i.e. 3 mem movements.
Patch reduces this to 1.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5307#issuecomment-688264865