[Haskell-cafe] Very _very_ slow compiles on Windows 10

Phyx lonetiger at gmail.com
Sat Sep 17 07:56:11 UTC 2016


> Is anybody else experiencing really slow compilations with GHC 7.10.2 on
> Windows 10?

The problem comes down to these lines
https://github.com/ghc/ghc/blob/e5ecb2010514405ac1b9b1285a8a65c00a5fd4e0/libraries/base/include/HsBase.h#L525

The issue is that the entire Windows support in GHC Is mostly provided
through POSIX support.
Windows however isn't a POSIX system, and these APIs were implemented for
compatibility and not performance.

This is the reason why any I/O operation on GHC Windows will be
significantly slower. This is the same reason why Console I/O is also much
slower. Why Unicode support is a bit wonky etc.

GHC Is currently just not using native Windows syscalls, because by large
most developers of GHC don't use Windows.

There are other issues (but I won't go in detail on the user list). We are
trying to fix this, there are multiple tickets open such as
https://ghc.haskell.org/trac/ghc/ticket/11394 but it's a big task and there
are very limited resources so priority is given to things currently broken
rather than just slow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160917/8d5024b1/attachment.html>


More information about the Haskell-Cafe mailing list