[libcxx-commits] [libcxx] [libc++] Optimize `text_encoding::environment_is()` for UTF-8, ASCII, Windows1252 and ISOLatin1 (PR #225136)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 22 00:20:33 PDT 2026


https://github.com/philnik777 requested changes to this pull request.

I'd really like to see some numbers on this. I can't reproduce that the user has to store any table at all with the current implementation: https://godbolt.org/z/7hjTMr9fP

I'm also not sure why we care too much about the performance here? Is this function expected to be hot in any way?

https://github.com/llvm/llvm-project/pull/225136


More information about the libcxx-commits mailing list