[libcxx-commits] [libcxx] [libc++] Introduce one-sided binary search for lower_bound on non-random iterators, and use that to improve the average complexity of set_intersection. (PR #75230)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 12 11:17:02 PST 2023
philnik777 wrote:
> OK, that's fair. How about I just stop exposing one-sided lower bound through std::lower_bound, and just use it for std::set_intersection, where all complexity guarantees are preserved, would that be OK?
If all the complexity guarantees are met, that would be OK. We always like to see some benchmarks to have some data that the optimization actually improves performance.
https://github.com/llvm/llvm-project/pull/75230
More information about the libcxx-commits
mailing list