[Bug libstdc++/28587] vector<bool> is extremely slow (900x slower than it should be)

sabre at nondot dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 3 18:31:00 GMT 2006



------- Comment #2 from sabre at nondot dot org  2006-08-03 18:31 -------
Andrew, I'm well aware that vector<bool> stores things in compact form.  If you
read my example, it's clear that I understand that.

Even with the current algorithm used by vector<bool>, it should not use
std::fill internally, it should use memset, which would be far more efficient. 
Again, actually read the example plz.

-Chris


-- 


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



More information about the Gcc-bugs mailing list