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

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

Open
zeme-wana opened this issue Jan 15, 2022 · 5 comments
Open

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

zeme-wana opened this issue Jan 15, 2022 · 5 comments

Comments

@zeme-wana
Copy link

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 zeme-wana changed the title Building the example project uses 8GB or RAM, is this expected? Building the example project takes 8GB of RAM, is this expected? Jan 15, 2022
@dmjio
Copy link
Owner

dmjio commented Jan 15, 2022

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
Copy link
Owner

dmjio commented Jan 16, 2022

@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
Copy link
Owner

dmjio commented Jan 16, 2022

there's this ghcjs/ghcjs#821

@smelc
Copy link
Contributor

smelc commented Jan 18, 2022

I posted on ghcjs/ghcjs#821

@pmiddend
Copy link

pmiddend commented Jan 4, 2023

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

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

4 participants