>>My original question to Jason was clarification on *why* (--i -(-1)) >>would run faster than (i--) as it seemed to me that two calculations per >>loop would run slower than 1. Since he used an expression I've never >>seen before I figured he might might know the reasoning behind the >>optimization. It does in fact surprise me that this method is faster.
My only reason in suggesting that form of looping it is because it had been discussed extensively in the past that loops of this form are faster than other methods, so I borrowed that code from the likes of Steve and others. I have put that loop structure into applications and it does seem to be slightly faster to me, but maybe that's only my perception. I used it to loop through some large XML and it worked great. It may not be better, I don't have anything scientific to back it up. Steve is more capable to argue the point. I didn't develop the form, I was only using it based on suggestions of others. If you're not doing much looping and/or calculating, it doesn't really matter what you use. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

