https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81476
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Jul 19 19:32:15 2017 New Revision: 250366 URL: https://gcc.gnu.org/viewcvs?rev=250366&root=gcc&view=rev Log: PR libstdc++/81476 Optimise vector insertion from input iterators PR libstdc++/81476 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>): Only insert elements one-by-one when inserting at the end. * testsuite/performance/23_containers/insert/81476.cc: New. Added: trunk/libstdc++-v3/testsuite/performance/23_containers/insert/81476.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/vector.tcc