By far the best way to optimise, is to find a better algorithm. Basically, avoid doing stuff, or do it as few times as possible. Sometimes tackling a problem from a different viewpoint can make a very dramatic difference to run times.
To suggest a better algorithm, we would need to know the details of what you are doing.
In reply to Re: Nested loops of doom
by BrowserUk
in thread Nested loops of doom
by BioNrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |