Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cdr.utah.edu!moore From: moore%cdr.utah.edu@wasatch.UUCP (Tim Moore) Newsgroups: gnu.emacs Subject: Re: garbage collection Message-ID: <1119@wasatch.UUCP> Date: 15 Feb 89 00:22:53 GMT References: Sender: news@wasatch.UUCP Reply-To: moore%cdr.utah.edu.UUCP@wasatch.UUCP (Tim Moore) Organization: University of Utah, Computer Science Dept. Lines: 32 In article mrd@sun.soe.clarkson.edu (Michael DeCorte) writes: >Eg. If I load up Gnus to read my news and exit gnus. After a few hours >I have not entered gnus but I have had several garbage collections. Was >the memory occupied by >1) gnus lisp code >2) gnus data code >searched during all of the garbage collections, some of them (which ones), >none of them? Yes. Emacs has a mark-sweep collector which implies that all accessible structures are marked and ALL accessible memory is sweeped (well, not all; see below). >So, is my worst nightmare true? Emacs searches though every little >grubby bit of lisp anything everytime it has to do a garbage >collection and thereby is distroying my poor little 50's? The Emacs garbage collector doesn't mark (or sweep) pure memory, which is memory that is already allocated at the time that emacs is undumped. You could try putting (load "gnus") in your site-init.el; increase the PURESIZE in config.h and remake emacs. This puts the code for gnus in the text segment of Emacs (which means its sharable, not a big deal for you). No guarantee that this will solve your problem, though. -Tim Moore 4560 M.E.B. internet:moore@cs.utah.edu University of Utah ABUSENET:{ut-sally,hplabs}!utah-cs!moore Salt Lake City, UT 84112