2012-11-16 François Dumont <fdumont@gcc.gnu.org>
commitc5981d0c3af4fa743c01fa2470f985ae53eb3238
authorfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2012 21:28:44 +0000 (16 21:28 +0000)
committerfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2012 21:28:44 +0000 (16 21:28 +0000)
treeaf286ba5a2bef7d79795117e634ec60dc2a3c8df
parent75e1829ff65760cfd66aa678dfc6fc0e42431958
2012-11-16  François Dumont  <fdumont@gcc.gnu.org>

* include/bits/hashtable_policy.h (_Prime_rehash_policy): Remove
automatic shrink.
(_Prime_rehash_policy::_M_bkt_for_elements): Do not call
_M_next_bkt anymore.
(_Prime_rehash_policy::_M_next_bkt): Move usage of
_S_growth_factor ...
(_Prime_rehash_policy::_M_need_rehash): ... here.
* include/bits/hashtable.h (_Hashtable<>): Adapt.
* testsuite/performance/23_containers/insert_erase/41975.cc: Add
_USE_TR1 to force build using std::tr1 container.
* testsuite/performance/23_containers/insert/unordered_set.cc:
Likewise.
* testsuite/performance/23_containers/insert/54075.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193576 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/testsuite/performance/23_containers/insert/54075.cc [new file with mode: 0644]
libstdc++-v3/testsuite/performance/23_containers/insert/unordered_set.cc
libstdc++-v3/testsuite/performance/23_containers/insert_erase/41975.cc