[libcxx-commits] [libcxx] [libcxx] Optimize `ranges::fold_left_with_iter` for segmented iterators (PR #177853)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 2 07:09:33 PST 2026


================
@@ -38,11 +38,13 @@ What's New in Libc++ 23.0.0?
 Implemented Papers
 ------------------
 
-- P2440R1 (partial): ``ranges::iota`` and ``ranges::shift_left`` are supported (`Github <https://llvm.org/PR105184>`__)
-
 Improvements and New Features
 -----------------------------
 
+- The ``std::ranges::fold_left_with_iter`` algorithm has been optimized for
+  segmented iterators, resulting in a performance improvement for
+  ``std::deque<int>`` iterators.
----------------
philnik777 wrote:

Could you add what sort of speedup you see?

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


More information about the libcxx-commits mailing list