Hi Tim,

Here is how i think it works :

A Garbage Collection is automatically done by Rebol whenever it judges that
there're too much unreferenced values.

You can force a garbage collection by calling 'recycle when you think that
a GC would be usefull.

'recycle/off will switch off the automatic mode. No garbage collection will
occur until you call 'recycle explicitly or get back to automatic mode with
'recycle/on. This mode can be usefull if you have a critical part in your code
and want to be sure that you won't be interrupted by a GC. Personnaly, i've not
yet faced such case. :)

You can see some GC stats in system/stats/recycle. (use %mem-stats.r from the
library to interpret those values or %mem-watch.r from my REB-site)

HTH,

-DocKimbel


Tim Johnson wrote:
> 
> Hi:
>         I'm looking at documenation on recycle. Since the default is
> 'on, does any one know of reasons why someone would use 'recycle?
> Thanks
> --
> Tim Johnson <[EMAIL PROTECTED]>
>        http://www.johnsons-web.com
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to