ic-hs icon indicating copy to clipboard operation
ic-hs copied to clipboard

Upgrade to GHC-9.4 resulting in lower compile-time memory usage

Open basvandijk opened this issue 2 years ago • 3 comments

Building ic-hs with GHC-9.0 requires ~13GB of memory. Upgrading to GHC-9.4 reduces this by around 30% to ~9GB:

Screenshot 2023-02-28 at 17 20 14

basvandijk avatar Feb 28 '23 16:02 basvandijk

This is nice, but we need a coherent plan how to promote such changes downstream. E.g. dfinity/motoko will need the same GHC so that we can reuse the binary cache artefacts. Hopefully nix will take care of this.

ggreif avatar Mar 04 '23 04:03 ggreif

I thought dfinity/motoko imports this repo as a whole, so for ic-ref-test it uses the same nixpkgs pin and thus the cache can be shared?

nomeata avatar Mar 04 '23 08:03 nomeata

Hopefully. But we also have a majority of M1 Macs in the meantime which have to build locally. So that is one difference.

ggreif avatar Mar 04 '23 09:03 ggreif