gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] [Maxima-discuss] gcl memory usage


From: Raymond Toy
Subject: Re: [Gcl-devel] [Maxima-discuss] gcl memory usage
Date: Tue, 24 Apr 2018 14:22:48 -0700
User-agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b34 (linux)

>>>>> "Camm" == Camm Maguire <address@hidden> writes:

    Camm> Greetings!
    Camm> Gunter Königsmann <address@hidden> writes:

    >> 
    >> @camm: Is there a way to manually trigger the garbage collector in gcl?
    >> 

    Camm> (si::gbc t) will collect everything.  One can also specify subsets of
    Camm> memory to collect.

    Camm> Everything should of course work without manual gc calls, but it is
    Camm> quite common for lisp coders to deliberately collect the garbage when
    Camm> they know they have generated a lot and want a small clean starting
    Camm> point.  For example, ACL2 invokes before save-system, etc.

This makes a lot of sense when you're doing save-system; no point in
saving all the garbage with the saved system.

Calling GC in other places is much harder to justify unless you really
know what's happening and why there's so much garbage at a certain
point.  And that just begs the question of why GC doesn't do that
automatically for itself.

--
Ray






reply via email to

[Prev in Thread] Current Thread [Next in Thread]