Growing arrays

BlitzMax Forums/BlitzMax Programming/Growing arrays

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The problem with slicing is that the whole old array must be copied ... this is very wastefull if you do it continously ... if you have 20 elemtns, potentially no problem.

If you do it with 100-500 elements it will seriously slow down the whole thing.


And the "wasted" time there is 0 actually. loops are lightning fast in BM and if you have an early break condition (if bla then continue ) it does not hurt at all. (few ticks only)