07-06-2005 02:12 PM
07-06-2005 02:28 PM - edited 07-06-2005 02:28 PM
Message Edited by altenbach on 07-06-2005 12:31 PM
07-06-2005 02:33 PM
07-06-2005 02:50 PM
07-06-2005 02:59 PM - edited 07-06-2005 02:59 PM
NIDave's example is how you should NOT do it. 🙂
"Delete from array" causes an array resizing operation and at each iteration, all higher elements must be moved down a click in memory. (Repeat 16384 times!!! (actually, the current code does it twice too many times, deleting "outside" the array for the second half of the run) )
All this makes it noticeably slow and inefficient! 😞
Message Edited by altenbach on 07-06-2005 01:05 PM
07-06-2005 03:05 PM
07-06-2005 03:38 PM
07-06-2005 04:44 PM
Decimate: 1 ms
Altenbach: 1 ms
NiDave: 1748 ms
Your computer is slow =P
07-06-2005 06:05 PM
07-06-2005 09:21 PM