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

Recycle

 [1/2] from: ptretter:norcom2000 at: 13-Feb-2001 20:03


Recycle/on is not a sustained process or so it appears. How often by default should recycle/on be freeing unused memory allocations? I'm trying to understand the purpose behind recycle/off and what the difference also is from recycle recycle/on Any ideas? Paul Tretter

 [2/2] from: larry::ecotope::com at: 13-Feb-2001 20:30


Hi Paul Just a short comment, others may wish to add some clarification. The default behavior of REBOL is to recycle unused memory as needed. recycle causes an immediate garbage collection (GC). You might do this in a script after clearing a large block, image, etc. so that following code will not be delayed by an automatic garbage collection. The use of recycle does not necessarily result in a decrease in the value given by rebol/stats, although it should when the allocated memory has grown large enough (the GC appears to be a fairly complex mechanism). The first value in the block returned by rebol/stats/recycle gives a count of the number of recycles. recycle/off turns off the automatic recycle or GC mechanism. This may be desirable because a automatic recycle could cause certain kinds of code to malfunction or cause an unacceptable delay. Sorry to be so vague. Others? recycle/on restores the normal operation of the GC after it has been turned off. recycle/torture Hmm? HTH -Larry ----- Original Message ----- From: Paul Tretter <[ptretter--norcom2000--com]> To: <[rebol-list--rebol--com]> Sent: Tuesday, February 13, 2001 6:03 PM Subject: [REBOL] Recycle
> Recycle/on is not a sustained process or so it appears. How often by
default should recycle/on be freeing unused memory allocations? I'm trying to understand the purpose behind recycle/off and what the difference also is from