[all-commits] [llvm/llvm-project] 29312d: [libc++] Optimize char_traits a bit (#72799)
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Sat Apr 20 02:40:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 29312d39ff89b664138c497716dd11d4e1f2876b
https://github.com/llvm/llvm-project/commit/29312d39ff89b664138c497716dd11d4e1f2876b
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-04-20 (Sat, 20 Apr 2024)
Changed paths:
M libcxx/include/__string/char_traits.h
M libcxx/include/__string/constexpr_c_functions.h
Log Message:
-----------
[libc++] Optimize char_traits a bit (#72799)
This implements two kinds of optimizations. Specifically
- `char_traits<char8_t>` uses `char` code paths; these are heavily
optimized and the operations are equivalent
- `char16_t` and `char32_t` `find` uses `std::find` to forward to
`wmemchr` if they have the same size
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list