This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: vector<> can probably never grow to it's maximum size!
Dhruv Matani wrote:
What I am trying to do for the __mt_alloc is NOT reallocate memory, but
reuse a memory region if it is already over-allocated(as in the case of
__mt_alloc because it uses bins of 2^N size).
Would you please do again your benchmarks with any data type of your choice
besides char? For instance longs, or floats? Or doubles, or pairs of
whatever?
Long long? If I understand well the machinery for chars you get the maximum
improvement: tuning on that case would amount to consider std::vector<char>
the most common instantiation...
Paolo.