llvm-project
2bf91db0 - [libc++] Use char_traits::copy while inserting when possible (#97201)

Commit
1 year ago
[libc++] Use char_traits::copy while inserting when possible (#97201) This reduces the number of asm lines from 707 to 519 for this snippet: ```c++ auto test(std::string& str, const char* begin, const char* end) { str.insert(str.begin(), begin, end); } ``` While that's not a performance metric, I've never seen a use of `memcpy` result in a performance regression for any realistic usage.
Author
Parents
Loading