This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/81476] severe slow-down with range-v3 library compared to clang
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jul 2017 19:32:47 +0000
- Subject: [Bug libstdc++/81476] severe slow-down with range-v3 library compared to clang
- Auto-submitted: auto-generated
- References: <bug-81476-4@http.gcc.gnu.org/bugzilla/>
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