[Bug libstdc++/42381] deque shouldn't reserve that much memory
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 15 17:38:00 GMT 2009
------- Comment #1 from paolo dot carlini at oracle dot com 2009-12-15 17:38 -------
Changing the value, via macro or whatever is trivial, and I can tell you for
sure from some experiment I did, that a *larger* value is much better, when
memory is available, for operations like copies. Changing the value however,
breaks the binary compatibility between objects (e.g, one allocating, the other
deallocating the same deque), it's a dangerous option.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42381
More information about the Gcc-bugs
mailing list