Posts Tagged interfaces

Function Performance

With access specifiers, statics, plain functions, and overriding, there are a lot of ways you can dress up a function in AS3. But how many programmers really know the performance implications of these options? Read on to find a straightforward test showing just that. EDIT: added functions defined in interfaces, getters, setters, and final functions.

Read the rest of this entry »

Tags: , , , , , , , , ,

46 Comments

Runnables as Function Pointers

Last Friday’s article expressed some longing for C-style function pointers. It attempted to use AS3′s Namespace class to fake a function pointer. Unfortunately, this resulted in far slower code than simple direct access. Today’s article shows a technique that actually results in far faster code!

Read the rest of this entry »

Tags: , , ,

16 Comments