Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Recycle Question

From: dockimbel:free at: 9-Nov-2001 20:23

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: