Monday, March 14, 2011

Local Variable Caching

Local Variable Caching:

Recently, I’ve seen a lot of performance-critical code that has made heavy use of field variables. For example, an expensive loop might look like this: for (var i:int = 0; i < this.numObjects; ++i). I've recommended to some of the programmers writing such code that they modify it to cache the field variable as a [...]

No comments:

Post a Comment