In the project I am working on, we have been using [Bindable] a lot, to be able to edit in a tool the parameters of the classes used in the app. Unfortunately, as we added more [BIndable] keywords, things started to get slow. Why ? What are the solutions ? Why slow? When adding [Bindable], […]

~ read more ~## Monthly archives for November, 2013

# profiling can be misleading !

While using in a project an optimized math function presented in one of my previous post, I got a really interesting surprise : the win with the optimized function was much better than the one profiled in my post, Great news, but what happened ? So here what my profiling test was: var i:Number,j:Number; var […]

~ read more ~# atan2 , tricks !!! **updated**

Today, I am going to try to optimize Math.atan2(y,x), atan2 is very useful when working with polar coordinates. Here the definition of atan2: Based on the definition, we will have to deal with multiple quadrants, but here some useful maths we can use: atan(-x) = -atan(x) atan(1/x) = PI/2 – atan(x) for x>0 =-PI/2 – […]

~ read more ~
## Recent Comments