vector<> can probably never grow to it's maximum size!
Paolo Carlini
pcarlini@suse.de
Wed Oct 20 14:27:00 GMT 2004
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.
More information about the Libstdc++
mailing list