[libcxx-commits] [libcxx] optimize minmax_element (PR #135495)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 25 06:34:56 PDT 2025


philnik777 wrote:

I think the main problem is that you're currently reducing in every single iteration. If we search for the minimum and maximum element by line instead, I think the performance would be significantly better, since we'd be able to reduce only once in the end instead.

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


More information about the libcxx-commits mailing list