Skip to content

Commit dcf7054

Browse files
author
doyougnu
committed
opt: lambda lifting, add more commentary
1 parent ef2bca8 commit dcf7054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Optimizations/GHC_opt/lambda_lifting.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ second form is beneficial when there many calls of ``map`` on short lists.
114114
function parameters at each call site. This means that whether lambda lifting
115115
is a performance win or not depends on the usage pattern of the function as
116116
we have demonstrated. See :ref:`When to Manually Apply Lambda Lifting <when>`
117-
for guidance on recognizing when your program may benefit.
117+
for guidance on recognizing when your program may benefit. In general,
118+
closure allocation is more expensive than pushing an extra parameter onto the
119+
stack.
118120

119121

120122
How Lambda Lifting Works in GHC

0 commit comments

Comments
 (0)