hiraditya wrote: > Does such optimization work for other (encoding) character types (namely `char8_t`, `char16_t`, `char32_t`, and `wchar_t`)? yes, once implemented it should work for all types having char_traits. https://github.com/llvm/llvm-project/pull/130476