[Bug libstdc++/54075] [4.7.1] unordered_map 3x slower than 4.6.2

likan_999.student at sina dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 24 00:43:00 GMT 2012


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

--- Comment #7 from likan_999.student at sina dot com 2012-07-24 00:42:57 UTC ---
@Paolo Carlini: the problem is, with different max_load_factor in range
[0.2-5], the *best* result of 4.7.1 is still 2x slower than the *worst* of
4.6.2.  

I printed out the average load factor during the insertion.  Looks like 4.7.1's
load factor is very close to the max_load_factor, and the average for 4.6.2 is
about 1/4 of the max_load_factor.  But what conclusion can we get from this
result?



More information about the Gcc-bugs mailing list