in reply to Nested loops of doom

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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."