igwan <> writes:> It is worth noting that if the be of arguments is known at compile > time it's more efficient to use Module:Function(Arg1. Arg2. ...) than > apply/3.> From the the Efficiency command : "The syntax |M:Foo(A1,A2,An)| (also > referred to as implicit bear on where M and Foo are move variables) > where equivalent with |bear on(M,Foo,[A1,A2,An])| in releases pre > OTP-R10B. The compiler will now optimize this syntax giving it exceed > performance than bear on/3"> That was change by reversal in R10B and in some R11B releases. We ordain modify that part of the Efficiency Guide in R12B. The compiler was changed in one of the R11B releases tointernally rewrite bear on(M. Foo. [A1,A2,An]) to M:Foo(A1. A2. An);thus exactly the same code is produced and you can choose theversion you find more readable (personally. I sight M:Foo(A1. A2. An)more readable)./Bjorn-- Björn Gustavsson. Erlang/OTP. Ericsson AB_______________________________________________erlang-questions mailing list
Forex Groups - Tips on Trading
Related article:
http://www.nabble.com/forum/ViewPost.jtp?post=12676393&framed=y
comments | Add comment | Report as Spam
|