This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: [RFC] Vector (string?) growth factor of 1.5 (insted of 2)


"Bo Persson" <bop@gmb.dk> writes:

| I think we should not only measure speed, but also consider the amount of
| memory wasted by over allocation.
| 
| If you want maximum speed for a particular container, you should of course
| allocate every single byte available for it at once, and be done with it.

I agree.

-- Gaby


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