diff options
| author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-02-04 17:12:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-04 17:12:35 +0100 |
| commit | d8148244e9be9d4c7b12abbdbf275d80d5ba57a5 (patch) | |
| tree | e6ccc1c22d4ae1e8660143cdf30fcc5483e8e91d /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
| parent | bd30838422bc31c90ae6e7119c433159d351ff05 (diff) | |
| download | llvm-d8148244e9be9d4c7b12abbdbf275d80d5ba57a5.zip llvm-d8148244e9be9d4c7b12abbdbf275d80d5ba57a5.tar.gz llvm-d8148244e9be9d4c7b12abbdbf275d80d5ba57a5.tar.bz2 | |
[libc++] Decrease instantiation cost of __constexpr_memmove (#125109)
Using `if constexpr` in `__constexpr_memmove` makes the instantiation
three times faster for the same type, since it avoids a bunch of class
instantiations and SFINAE for constexpr support that's never actually
used. Given that `__constexpr_memmove` is used quite a bit through
`std::copy` and is instantiated multiple times when just including
`<__string/char_traits.h>` this can provide a nice compile time speedup
for a very simple change.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions
