Unverified Commit 2096f37d authored by Nikolas Klauser's avatar Nikolas Klauser Committed by GitHub
Browse files

[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.
parent 95a834a1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment