About std::vector::resize().

Dhruv Matani dhruvbird@gmx.net
Sat May 29 10:49:00 GMT 2004


On Sat, 2004-05-29 at 01:10, Paolo Carlini wrote:
> Dhruv Matani wrote:
> 
> >1. _M_range_insert.
> >2. _M_fill_insert.
> >3. _M_insert_aux.
> >4. erase (both overloads).
> >5. insert.
> >6. reserve
> >7. resize
> >8. _M_allocate_and_copy.
> >
> >I can prepare a patch along with a performance test-case if that's
> >what's required.
> >
> >Is that fine?
> >
> Hi Dhruv.
> 
> First, thanks for your enthusiasm.

Thanks ;-)

Actually, this patch is because of my own selfish needs. I use currently
std::vector<std::vector<char> > very heavily in a file processing app.
of mine, and figured that would help with this optimization, so I
thought about it.


> Personally, I would suggest working piecewise, beginning with the first case
> that was discussed, resize. Therefore, present a draft but already 
> functional
> and tested patch together with some performance numbers.

Ok.

> 
> Then, if we all agree about the approach, you will be able to safely proceed
> with the other functions and other improvements.

Sure thing.




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

Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html




More information about the Libstdc++ mailing list