Thank you! A simpler fix for WSL ghc users is upgrading to fast ring of insider builds, the mmap overhead is much lower and ghc startup lag is barely noticable.

On Tue, Feb 13, 2018, 6:52 PM Yitzchak Gale <gale@sefer.org> wrote:
I have made available a build of GHC 8.2.2 with the config option:
--disable-large-address-space

You may find this useful if you are using Ubuntu 16.04 on Windows
Subsystem for Linux.

https://github.com/zoominsoftware/ghc-8.2.2-wsl

Although Microsoft has been making gradual progress on the large
address mapping issue[1][2], and the situation is much improved, there
is still an extra startup latency of about 13 secs. for applications
that pre-map a large address space as GHC does by default. This makes
the standard GHC 8.2.2 binary unusable for compiling projects of any
non-trivial size on WSL. You may find this GHC 8.2.2 binary more usable.

Regards,
Yitz

[1] https://ghc.haskell.org/trac/ghc/ticket/13304
[2] https://github.com/Microsoft/WSL/issues/1671
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.