Suppressing Garbage Collection Messages
List of: Discussion Topic
Subjects: Scheme AIDE Application, Scheme Interface
Contents: Scheme Support

Garbage collection is the Scheme Interpreter's process of recovering and reusing memory. Example 2-12 suppresses the notification messages that occur during garbage collection (but does not suppress garbage collection itself). It is useful when procedures create many objects and use lots of memory, especially for recursive operations and intermediate results. No Scheme object is ever destroyed unless Scheme can prove that that object is never used again.

; ------------------------------------------------------------
; Suppress (#f) or enable (#t) garbage collection messages
; ------------------------------------------------------------
(set! garbage-collect-notify? #f)

Example 2-12. Suppressing Garbage Collection
PDF/SCM/02SCPRC.PDF
HTM/DATA/SCM/SCM/02SCPRC/0014.HTM