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: vector<> can probably never grow to it's maximum size!


On Wed, 2004-10-20 at 19:58, Paolo Carlini wrote:
> 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...

Yes, I have attached a file containing the test results.


> 
> Paolo.
-- 
        -Dhruv Matani.
http://www.geocities.com/dhruvbird/

The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs

Attachment: vexpand_op.txt
Description: Text document


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