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

[REBOL] Re: Memory usage

From: SunandaDH:aol at: 14-Oct-2005 4:20

Peter:
> What should I do in my script to clean up before exit?
A couple of suggestions.... * Use recycle at various points -- it can reclaim memory from dead variables * I tend to break applications up into small "modules" (not in the expected REBOL sense of the word) that can be unset after use, eg: do %init-module.r ;; loads an object called init-module that has many functions init-module/do-it ;; run the initialisation -- it'll set up some global data objects unset 'init-module ;; delete all the initialisation stuff Sunanda.