[libcxx-commits] [libcxx] [libc++] [sort] Improve performance of std::sort (PR #76616)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 30 08:36:32 PST 2023
philnik777 wrote:
We've not done this before, because even comparators for trivially copyable types can be arbitrarily expensive and the types can also be arbitrarily large. Consider e.g. `string_view`. It's trivially copyable, but the comparator definitely isn't simple, which may result in _very_ bad code.
https://github.com/llvm/llvm-project/pull/76616
More information about the libcxx-commits
mailing list