Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can compile times be improved from around 10-40 minutes? #7

Open
Wizek opened this issue Mar 22, 2018 · 0 comments
Open

Can compile times be improved from around 10-40 minutes? #7

Wizek opened this issue Mar 22, 2018 · 0 comments

Comments

@Wizek
Copy link

Wizek commented Mar 22, 2018

On my machine jsaddle-dom takes quite a lot of time to compile.

It usually hangs after this step the most:

Configuring jsaddle-dom-0.9.2.0...
Building jsaddle-dom-0.9.2.0...
Preprocessing library jsaddle-dom-0.9.2.0...
[  1 of 599] Compiling JSDOM.Types      ( src/JSDOM/Types.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/JSDOM/Types.o )

Then the RAM consumption just keeps rising, till around a 2-5GB peak before the modules continue building.

  • Any idea what could be the culprit?
  • Could it be the case that GHC is having a hard time processing a package with 599 modules?
  • Or do other packages with similar module counts compile quicker?
  • Is there something relatively fundamental at play here?
  • Or could there be some low hanging fruit to speed this up?
  • Has there been any efforts to reduce or profile build times so far?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant