[Bug libstdc++/50160] vector<bool> comparison very slow (no specialisation)

devel@the-user.org gcc-bugzilla@gcc.gnu.org
Tue Aug 23 14:14:00 GMT 2011


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

--- Comment #2 from Jonathan Schmidt-Dominé <devel@the-user.org> 2011-08-23 13:50:09 UTC ---
Well, it made my specific application very slow, when using vector<bool> as
key_type for (ordered) map.  What kind of numbers would be usefull? I think it
should simply have a specialised operator< implementation comparing chunks of
32/64 bits, there is also a specialised hash implementation, it should be like
that one.



More information about the Gcc-bugs mailing list