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++/54075] [4.7.1] unordered_map insert 3x slower than 4.6.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54075

--- Comment #23 from FranÃois Dumont <fdumont at gcc dot gnu.org> 2012-07-29 16:44:26 UTC ---
Author: fdumont
Date: Sun Jul 29 16:44:18 2012
New Revision: 189938

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189938
Log:
2012-07-29  FranÃois Dumont  <fdumont@gcc.gnu.org>

    PR libstdc++/54075
    * include/bits/hashtable_policy.h
    (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2
    to boost growth in the number of buckets.
    * testsuite/performance/23_containers/insert/unordered_set.cc: New.

Added:
   
trunk/libstdc++-v3/testsuite/performance/23_containers/insert/unordered_set.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/hashtable_policy.h


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