aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/efficiency_guide
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-02-28 09:41:40 +0100
committerBjörn Gustavsson <[email protected]>2010-02-28 09:41:40 +0100
commit5a662ce8fa95ab467e77a654088df43e5528a584 (patch)
treea9add15aac803aec6908bf52c0e5626f93962faf /system/doc/efficiency_guide
parentcedee54fd81ddf8e4423e5ad4b3e6454001c6e95 (diff)
downloadotp-5a662ce8fa95ab467e77a654088df43e5528a584.tar.gz
otp-5a662ce8fa95ab467e77a654088df43e5528a584.tar.bz2
otp-5a662ce8fa95ab467e77a654088df43e5528a584.zip
Efficiency Guide: Recommend external funs over tuple funs
Diffstat (limited to 'system/doc/efficiency_guide')
-rw-r--r--system/doc/efficiency_guide/functions.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/doc/efficiency_guide/functions.xml b/system/doc/efficiency_guide/functions.xml
index d55b60e39c..0d2e756900 100644
--- a/system/doc/efficiency_guide/functions.xml
+++ b/system/doc/efficiency_guide/functions.xml
@@ -179,7 +179,9 @@ explicit_map_pairs(Map, Xs0, Ys0) ->
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 may not be supported in a future release.</p></warning>
+ as they may not be supported in a future release,
+ and because there exists a superior alternative since the R10B
+ release, 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. Therefore, it will always be slower than a