I think this helps quite a bit. Although it still peaks briefly at over 3 GB mem usage on my Mac according to the Activity Monitor it seems to spend much of its time using 400 - 800 mb memory use. I can't be sure as I never tried to compile this before. I'm compiling by simply doing cabal install .... Not sure what optimization levels that uses, I assume -O1On Sun, May 3, 2015 at 10:41 AM, Sven Panne <svenpanne@gmail.com> wrote:2015-05-02 12:01 GMT+02:00 Paolino <paolo.veronelli@gmail.com>:
> Hello, I succeded in compiling
> https://hackage.haskell.org/package/OpenGLRaw-2.4.1.0/docs/src/Graphics-Rendering-OpenGL-Raw-Functions.html
> on a 32 bit machine with 2GB of memory with ghc 7.10.1. O_O
To alleviate the pain a bit, I've uploaded a new version of OpenGLRaw
(2.5.0.0) to Hackage, containing 2 improvements:
* 'foreign import "dynamic"'s with the same signature are re-used,
cutting down their number from 3062 to 864.
* Those 'foreign import "dynamic"'s live in a separate module now.
Travis CI seems to be happy with these changes (the VMs there don't
have much memory, either), although Haddock still seems to eat memory
like hell. But that's a different story...
It would be nice to hear if the new version improved the situation for
people who previous had trouble.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users