> Since it is only possible to add one element at a time to a vector > (apart from when it is created), shouldn't it suffice to grow the > vector by only 1 at any time?
This works, but it means that each time you add an element, PowerPro goes to the system memory allocator and asks for a new block of memory and copies the vector element list to that new block. The older block may or may not be re-used. Its usually better to grab the memory in larger increments to avoid constant cycling. So a growth factor of 1 will work, but may lead to inefficient use of memory, especially for a vector that changes many times. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM ---------------------------------------------------------------------~-> **** EDIT YOUR POSTINGS !!!! **** Please remove as much as possible from original messages before replying to them. ________________________________________________ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
