z_axis
z_axis

Reputation: 8460

Can i reduce ghci's memory usage?

I installed GHC-7.4 on an old freebsd box with 512M RAM. All works great ! But the GHCI occupies too much RAM once started.

Any suggestion is appreciated !

Upvotes: 7

Views: 706

Answers (2)

Don Stewart
Don Stewart

Reputation: 137937

Alternatively, use the compiler rather than the interpreter.

Upvotes: 2

Satvik
Satvik

Reputation: 11208

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

See RTS options for more information on runtime flags.

Upvotes: 10

Related Questions