Performance tip: Primitives and Methods

"Use the Object version of primitive values in your application and not the primitives themselves for method intensive variables"

But not always.

"Simple computation like a*b or expressions like a = !b are much slower if you are using objects."

When you use a method of a primitive type, a wrapper object will be created and "the creation of the wrapper-object costs time that you maybe don’t have".

This entry was posted in Flash.

One Response to Performance tip: Primitives and Methods

  1. Nice way of information focus :)