caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Early GC'ing
@ 2013-08-18 20:42 oliver
  2013-08-18 20:53 ` oliver
  2013-08-19 11:51 ` Adrien Nader
  0 siblings, 2 replies; 10+ messages in thread
From: oliver @ 2013-08-18 20:42 UTC (permalink / raw)
  To: caml-list

Hello,

in a loop I read in a lot of files,
from which I just need to collect
a small portion of the data.

Right after reading and selecting what I needed,
I don't need any of the read file data.
The most stuff can just be thrown away.

What GC functions need to be called to throw away
the garbage soon?

Thats the first time I really need the GC-functions to
trigger by myself, because it's much data, of which
I need only a small portion.

So far I normally needed most of the data I read in
and the defaults of the GC were pretty fine for my tasks and taste.

This time a lot of mem is used...
...so GC functionality seems to be the way to go.


Are there general rules of thumb how to trigger GC
for a given kind of mem-handling (in my case: read data,
pick some parts of it and throw away the rest soon),
or is this something, where exploring the GC-statistics
is the common case (no rules of thumb?)?


Ciao,
   Oliver

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-08-19 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-18 20:42 [Caml-list] Early GC'ing oliver
2013-08-18 20:53 ` oliver
2013-08-18 21:14   ` Anthony Tavener
2013-08-18 22:40     ` oliver
2013-08-19  0:20       ` oliver
2013-08-19  6:43         ` Anthony Tavener
2013-08-19 10:34           ` oliver
2013-08-19 11:39           ` Mark Shinwell
2013-08-19 11:51 ` Adrien Nader
2013-08-19 12:36   ` oliver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).