|
![](/i/fill.gif) |
wrote:
> I wonder if this is optimized if functions evaluator:
I want to keep all issues about such optimizations in one thread if possible so
I ask next question here again:
Let's cosider such code:
#local F1=function{...};
#local F2=function{F1(x,y,z)};
#local F3=function{F2(x,y,z)};
#local F4=function{F3(x,y,z)};
After parsing all F1, F2, F3, F4 point to the same function or waste time for
call ancestors ? Mainly I ask for case of macro and/or array creation, for
example:
#local F1=function{x};
#local F2=function{y};
#macro Operation( Function )
/* do something with Function */
#end
#macro Test(Array)
#local Size=dimension_size(Array,1);
#local C=0;
#while (C<Size)
Operation( function{ Array[C](x,y,z) } )
#local C=C+1;
#end
#end
Test( array[2]{ function{F1(x,y,z)} , function{F2(x,y,z)} } )
ABX
Post a reply to this message
|
![](/i/fill.gif) |