Skip to content

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

Open
@Wizek

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions