on master help sign in
Add the -fdicts-strict flag to avoid memory leaks

See GHC ticket https://gitlab.haskell.org/ghc/ghc/issues/17745

commit1987b9e6bea1035d187d58e7810efa932a36e0ad authorHarendra Kumar <harendra.kumar@gmail.com> dateSun 9 Feb 2020, 00:19 (7 years ago) parent55bdd5b
2 files changed+6−1
docs/Build.md+5−1 streamly.cabal+1
docs/Build.md+5−1
@@ -2,7 +2,11 @@
22
33Recommended GHC options are:
44
5− `-O2 -fspec-constr-recursive=16 -fmax-worker-args=16`
5+ `-O2 -fdicts-strict -fspec-constr-recursive=16 -fmax-worker-args=16`
6+
7+`-fdicts-strict` is needed to avoid [a GHC
8+issue](https://gitlab.haskell.org/ghc/ghc/issues/17745) leading to
9+memory leak in some cases.
610
711`-fspec-constr-recursive` is needed for better stream fusion by enabling
812the `SpecConstr` optimization in more cases.
streamly.cabal+1
@@ -215,6 +215,7 @@ common compile-options
215215
216216common optimization-options
217217 ghc-options: -O2
218+ -fdicts-strict
218219 -fspec-constr-recursive=16
219220 -fmax-worker-args=16
220221