comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Dynamically resizing arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Dynamically resizing arrays [message #42475 is a reply to message #42408] Wed, 09 February 2005 11:00 Go to previous message
kenklare is currently offline  kenklare
Messages: 1
Registered: February 2005
Junior Member
Adding a row at a time requires time and memory to grow as the square
of the size.
Memory grows because the new chunk cannot reuse the old one, it is too
big.
Adding a chunk at a time reduces the coefficient by 100 or whatever.
Doubling increases time logarithmically.
This square growth can noticibly slow a program that does a lot of it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D heart
Next Topic: Blurred display of images in PDFs created from EPS on Mac OS X

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:11:36 PDT 2025

Total time taken to generate the page: 0.87872 seconds