This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/42381] deque shouldn't reserve that much memory



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]