commit | fb5bfcf2f013ed646c0e780580fd965d516f6f18 | [log] [tgz] |
---|---|---|
author | Nikolas Klauser <nikolasklauser@berlin.de> | Sat Apr 20 11:40:18 2024 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Apr 20 02:54:20 2024 -0700 |
tree | 5dbaae9947bafcaf1d620db9ec58cc4dac625843 | |
parent | b29df640035f025a310a6c37fa9b8161659706b5 [diff] |
[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 GitOrigin-RevId: 29312d39ff89b664138c497716dd11d4e1f2876b