i know most of you will ignore this, but for the one or two that might be interested (i don't want to do a user blog post thingy till i'm actually completed)
yaaaay, using flex profiler my custom written distance function is 39% faster than my best AS3 one, even without full method inlining yet.
function dis_abc(a:Point,b:Point):Number
{
__asm_clear();
__asm("max_stack 4",
"local_count 3",
"scope_depth 0",
"getlex Math",
"getlocal_2",
"getproperty x",
"getlocal_1",
"getproperty x",
"subtract",
"dup",
"multiply",
"getlocal_2",
"getproperty y",
"getlocal_1",
"getproperty y",
"subtract",
"dup",
"multiply",
"add",
"callproperty sqrt 1",
"returnvalue");
__asm_end();
return 0;
39% faster than:
function dis_as3(a:Point,b:Point):Number
{
const dx:Number = b.x-a.x;
const dy:Number = b.y-a.y;
return Math.sqrt(dx*dx+dy*dy);
}