You keep computing the length of $sub every iteration, even though it's static.length() is a property of a string and does not require computation. Remember, this is not C.
In reply to Re: Re: Performance Tuning: Searching Long-Sequence Permutations
by diotalevi
in thread Performance Tuning: Searching Long-Sequence Permutations
by Itatsumaki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |