From 6ecbfdcce4dc8b1c58a4f34e2edd8eaabd54793f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Tue, 13 Dec 2016 14:17:03 +0100 Subject: Extend the text for "_" myth Thanks to Joe Armstrong for the suggestion. --- system/doc/efficiency_guide/myths.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system') diff --git a/system/doc/efficiency_guide/myths.xml b/system/doc/efficiency_guide/myths.xml index 168aa3d35c..778cd06c09 100644 --- a/system/doc/efficiency_guide/myths.xml +++ b/system/doc/efficiency_guide/myths.xml @@ -152,6 +152,11 @@ vanilla_reverse([], Acc) ->

That was once true, but from R6B the BEAM compiler can see that a variable is not used.

+ +

Similarly, trivial transformations on the source-code level + such as converting a case statement to clauses at the + top-level of the function seldom makes any difference to the + generated code.

-- cgit v1.2.3