Can I reduce ghci memory usage?

I installed GHC-7.4 in an old freebsd box with 512M RAM. Everything works great! But GHCI takes up too much RAM after startup.

Any suggestion appreciated!

+7
source share
2 answers

You can use ghci +RTS -M100M -c30 if you want to limit the heap size to 100 MB and use compaction when heap usage increases to 30%.

For more information about runtime flags, see RTS .

+9
source

As an alternative, use a compiler, not an interpreter.

+2
source

All Articles