Skip to content
Snippets Groups Projects
Commit c2a6c3eb authored by Sebastian Graf's avatar Sebastian Graf Committed by Marge Bot
Browse files

release notes: Changes to Demand analysis

parent be33d61a
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,17 @@ Compiler
evaluate both with a bang pattern or a ``seq``, but the ``return $! <res>``
idiom should work more reliably and needs less thinking.
- Demand analysis (cf. :ghc-flag:`-fstrictness`) now integrates a
Boxity Analysis that tracks whether a function needs a parameter boxed. If
that is the case, the worker/wrapper transformation (cf.
:ghc-flag:`-fworker-wrapper`) will not unbox that parameter, leading to less
reboxing in many cases.
For reasons of backwards-compatible performance, you may find that the new
mechanism is too aggressive in a few cases (e.g., still unboxing a parameter
that is used boxed in a hot path). Do post a bug report with your example!
Then wrap the uses of the parameter in ``GHC.Exts.lazy`` for a short-term fix.
``base`` library
~~~~~~~~~~~~~~~~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment