diff options
author | Erlang/OTP <[email protected]> | 2010-03-15 13:13:21 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-03-15 13:13:21 +0000 |
commit | 3aa73b1a0345c0ce851081567c220697eeba4233 (patch) | |
tree | 3f3ea1a688e4bee01c1977e0ba9ef929dc8e63fa /system/doc/efficiency_guide/functions.xml | |
parent | f871d37d381e256ce6384c2aed4f1726ad7df7a8 (diff) | |
parent | 5a662ce8fa95ab467e77a654088df43e5528a584 (diff) | |
download | otp-3aa73b1a0345c0ce851081567c220697eeba4233.tar.gz otp-3aa73b1a0345c0ce851081567c220697eeba4233.tar.bz2 otp-3aa73b1a0345c0ce851081567c220697eeba4233.zip |
Merge branch 'bg/efficiency-guide' into dev
* bg/efficiency-guide:
Efficiency Guide: Recommend external funs over tuple funs
Efficiency Guide: The maximum number of atoms can be configured
Efficiency Guide: Fix typos
OTP-8515 bg/efficiency-guide
Diffstat (limited to 'system/doc/efficiency_guide/functions.xml')
-rw-r--r-- | system/doc/efficiency_guide/functions.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/system/doc/efficiency_guide/functions.xml b/system/doc/efficiency_guide/functions.xml index d55b60e39c..fe14a4f000 100644 --- a/system/doc/efficiency_guide/functions.xml +++ b/system/doc/efficiency_guide/functions.xml @@ -4,7 +4,7 @@ <chapter> <header> <copyright> - <year>2001</year><year>2009</year> + <year>2001</year><year>2010</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -13,12 +13,12 @@ compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. - + Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - + </legalnotice> <title>Functions</title> @@ -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 |