A code monkey randomly typing on a keyboard for an infinite amount of time will almost surely produce brilliance (almost).

answering those nagging questions about efficient syntax…

Posted: December 23rd, 2008 | Author: Huyen Tue Dao | Filed under: Development | Tags: , , , | No Comments »

This flex application runs small timing tests on variations of syntax in AS3.  Curious as to whether there’s a difference between x++, x+=1, and x = x + 1?  How much does the data type of a for loop’s iterator impact runtime?   Yeah, maybe nitpicking about syntax for performance-sake is overkill in many cases, but for anyone working on data-heavy applications with lots of looping/processing of data, a little can go a long way.



Leave a Reply