[all-commits] [llvm/llvm-project] 44d376: [libc++] Optimize ctype::to{lower, upper} (#145344)

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Wed Jul 9 07:32:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44d37695a5e158afdd9d3f9805d4a4a04cfc270a
      https://github.com/llvm/llvm-project/commit/44d37695a5e158afdd9d3f9805d4a4a04cfc270a
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M libcxx/docs/ReleaseNotes/21.rst
    M libcxx/include/__config
    M libcxx/include/__locale
    M libcxx/include/__locale_dir/locale_base_api.h
    M libcxx/include/__locale_dir/support/bsd_like.h
    M libcxx/include/__locale_dir/support/linux.h
    M libcxx/include/__locale_dir/support/no_locale/characters.h
    M libcxx/include/__locale_dir/support/windows.h
    M libcxx/lib/abi/CHANGELOG.TXT
    M libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.noexceptions.nonew.abilist
    M libcxx/src/locale.cpp
    A libcxx/test/benchmarks/locale/ctype.bench.cpp

  Log Message:
  -----------
  [libc++] Optimize ctype::to{lower,upper} (#145344)

```
----------------------------------------------
Benchmark                       old        new
--------------------------- ------------------
BM_tolower_char<char>       1.64 ns    1.41 ns
BM_tolower_char<wchar_t>    1.64 ns    1.41 ns
BM_tolower_string<char>     32.4 ns    12.8 ns
BM_tolower_string<wchar_t>  32.9 ns    15.1 ns
BM_toupper_char<char>       1.63 ns    1.64 ns
BM_toupper_char<wchar_t>    1.63 ns    1.41 ns
BM_toupper_string<char>     32.2 ns    12.7 ns
BM_toupper_string<wchar_t>  33.0 ns    15.1 ns
```



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