[libcxx-commits] [libcxx] [libc++] Optimize ranges::{for_each, for_each_n} for segmented iterators (PR #132896)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Apr 5 06:33:13 PDT 2025
https://github.com/philnik777 requested changes to this pull request.
I feel like the scope of this patch is getting a bit out of hand. The title says that you're optimizing `ranges::for_each{,_n}`, but you're also back-porting the `std::for_each` optimization to C++03, adding and adding an optimization to `std::for_each_n`. Could we split this up to make it clear what changes are required for what optimizations? Also, why do we want to back-port the `std::for_each` optimization now? Do we think the extra complexity is worth the improved performance?
https://github.com/llvm/llvm-project/pull/132896
More information about the libcxx-commits
mailing list