From 5a662ce8fa95ab467e77a654088df43e5528a584 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?=
Date: Sun, 28 Feb 2010 09:41:40 +0100
Subject: Efficiency Guide: Recommend external funs over tuple funs
---
system/doc/efficiency_guide/functions.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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", {Module,Function}, is not a fun.
The cost for calling a "tuple fun" is similar to that
of apply/3 or worse. Using "tuple funs" is strongly discouraged,
- as they may not be supported in a future release.
+ as they may not be supported in a future release,
+ and because there exists a superior alternative since the R10B
+ release, namely the fun Module:Function/Arity syntax.
apply/3 must look up the code for the function to execute
in a hash table. Therefore, it will always be slower than a
--
cgit v1.2.3