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)
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)