[all-commits] [llvm/llvm-project] 2096f3: [libc++][NFC] Use __constexpr_memmove instead of c...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Mar 21 03:57:28 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2096f37d7a580a4b4ddce2a44abb80ff90f273ee
https://github.com/llvm/llvm-project/commit/2096f37d7a580a4b4ddce2a44abb80ff90f273ee
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-03-21 (Thu, 21 Mar 2024)
Changed paths:
M libcxx/include/__string/char_traits.h
Log Message:
-----------
[libc++][NFC] Use __constexpr_memmove instead of copy_n in <__string/char_traits.h> (#85920)
`copy_n` has been used to allow constant evaluation of `char_traits`. We
now have `__constexpr_memmove`, which `copy_n` just forwards to. We can
call `__constexpr_memmove` directly, avoiding a bunch of instantiations.
This reduces the time it takes to include `<string>` from 321ms to
285ms.
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