opensubscriber
   Find in this group all groups
 
Unknown more information…

g : glasgow-haskell-users@haskell.org 7 May 2012 • 10:10PM -0400

Re: Explicit calls to the garbage collector.
by Joachim Breitner

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

Am Montag, den 07.05.2012, 15:33 +0200 schrieb Jurriaan Hage:
> I have a very memory intensive application. It seems that the timing of my application
> depend very much on the precise setting of -H...M in the runtime system (-H2000M
> seems to work best, computation time becomes a third of what I get when I pass no
> -H option).  I conjecture that this good behaviour is the result of gc happening at the right time.
> So I wondered: if I can one when is the right time, is it possible then to trigger
> GC explicitly from within the Haskell code?

there is performGC:
http://hackage.haskell.org/packages/archive/base/latest/doc/html/System-Mem.html#v:performGC

Greetings,
Joachim

--
Joachim "nomeata" Breitner
  mail@joac...  |  nomeata@debi...  |  GPG: 0x4743206C
  xmpp: nomeata@joac... | http://www.joachim-breitner.de/


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.