miso icon indicating copy to clipboard operation
miso copied to clipboard

Building the example project takes 8GB of RAM, is this expected?

Open zeme-wana opened this issue 3 years ago • 5 comments

I followed the exact steps in the README, and running nix-shell -A env --run 'cabal configure --ghcjs && cabal build' takes 8GB or RAM. Is this expected? Is this related to miso or is this common to all ghcjs projects? I wonder what will happen as my project scales: as I actually add modules and packages, how will RAM takeup increase?

zeme-wana avatar Jan 15 '22 12:01 zeme-wana

This seems to only be a problem with the latest GHCJS (8.10.7)+. Using miso's last pin of nixpkgs will use GHCJS 8.6.5, which will not use as much RAM. I'm contemplating a revert.

dmjio avatar Jan 15 '22 18:01 dmjio

@zeme-wana could you post this on https://github.com/ghcjs/ghcjs/issues? Ideally with as much detail as you can provide. I imagine everyone is running into this.

dmjio avatar Jan 16 '22 16:01 dmjio

there's this https://github.com/ghcjs/ghcjs/issues/821

dmjio avatar Jan 16 '22 16:01 dmjio

I posted on ghcjs/ghcjs#821

smelc avatar Jan 18 '22 11:01 smelc

This is simply not fixed upstream if I read this correctly, right? Any workaround?

pmiddend avatar Jan 04 '23 17:01 pmiddend