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 of telegram-api in dependencies runs out of memory #3637

Closed
viviag opened this issue Dec 11, 2017 · 1 comment
Closed

Building of telegram-api in dependencies runs out of memory #3637

viviag opened this issue Dec 11, 2017 · 1 comment

Comments

@viviag
Copy link

viviag commented Dec 11, 2017

$ stack --version
Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) x86_64 hpack-0.20.0

I'm building package with telegram-api in dependencies. It runs out of memory and take a lot of time (such I've never seen it ended) while building telegram-api. Same thing with --fast.
stack build on standalone package works with memory consumption less than 1G.

With version 1.5.1 everything ends.

@mgsloan
Copy link
Contributor

mgsloan commented Dec 25, 2017

I ran it, and stack has typical memory usage. GHC uses a fair bit and takes a while to compile. I took a look at the package, and it has large datatypes and uses generic deriving.

This is not a stack bug. It would be great if GHC was faster for this, but that's a complex upstream issue.

@mgsloan mgsloan closed this as completed Dec 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants