This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/81476] severe slow-down with range-v3 library compared to clang


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]