[libcxx-commits] [libcxx] [libc++] Optimize lexicographical_compare (PR #65279)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 5 13:55:29 PDT 2023


EricWF wrote:

Can you please add benchmarks for types other than `int` or other small integral types.
Making an algorithm faster for types that fit in registers and are cheap to copy isn't the whole story, and might actually hide the pessimization for other types.


std::string is a good candidate for a test type. With both short and long strings.



https://github.com/llvm/llvm-project/pull/65279


More information about the libcxx-commits mailing list