On 08/06/20 19:20 +0100, Jonathan Wakely wrote: >On 05/06/20 22:24 +0200, François Dumont via Libstdc++ wrote: >>Hi >> >>    Here is the last of my algo patches this time to extend the >>memcmp optimization to std::deque iterators and _GLIBCXX_DEBUG mode. >> >>    To do so I had to return int in implementation details of >>lexicographical_compare to make sure we can treat a deque iterator >>range by chunk in a performant way. Here's a simpler version, which doesn't alter anything for the existing code (i.e. all iterators that aren't deque iterators) and also fixes the infinite loop bug. This seems simpler and less invasive. Please take a look.