diff options
author | Björn Gustavsson <[email protected]> | 2017-01-10 13:55:27 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-01-10 13:55:27 +0100 |
commit | 071b8c4470cc9f0d6bee6f00e00ca325531b4a01 (patch) | |
tree | b25a9da8274ab6e31051839c1eeb67be80251f29 /system/doc/efficiency_guide/functions.xml | |
parent | 184b2627f8908c8e6af033991ee831c3fb2f9f82 (diff) | |
download | otp-071b8c4470cc9f0d6bee6f00e00ca325531b4a01.tar.gz otp-071b8c4470cc9f0d6bee6f00e00ca325531b4a01.tar.bz2 otp-071b8c4470cc9f0d6bee6f00e00ca325531b4a01.zip |
Don't mention "tuple funs" at all
"Tuples funs" was removed a long time ago. There is no need to
even mention them.
Diffstat (limited to 'system/doc/efficiency_guide/functions.xml')
-rw-r--r-- | system/doc/efficiency_guide/functions.xml | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/system/doc/efficiency_guide/functions.xml b/system/doc/efficiency_guide/functions.xml index 4a8248e65c..1c34888bb5 100644 --- a/system/doc/efficiency_guide/functions.xml +++ b/system/doc/efficiency_guide/functions.xml @@ -183,15 +183,6 @@ explicit_map_pairs(Map, Xs0, Ys0) -> A fun contains an (indirect) pointer to the function that implements the fun.</p> - <warning><p><em>Tuples are not fun(s)</em>. - A "tuple fun", <c>{Module,Function}</c>, is not a fun. - The cost for calling a "tuple fun" is similar to that - of <c>apply/3</c> or worse. - Using "tuple funs" is <em>strongly discouraged</em>, - as they might not be supported in a future Erlang/OTP release, - and because there exists a superior alternative from R10B, - namely the <c>fun Module:Function/Arity</c> syntax.</p></warning> - <p><c>apply/3</c> must look up the code for the function to execute in a hash table. It is therefore always slower than a direct call or a fun call.</p> |