I imagine that all that splicing is less efficient than grep assignment.
Definately. using splice like this is horribly inefficient in terms of run time. Every splice requires the entire array to be shifted, and each time with more elements. Which if my hungover brain is correct would run in O(N**2): ie horribly slow.
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re^2: Foreach for array pruning?
by demerphq
in thread Foreach for array pruning?
by spandox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |