Newsgroups: fj.editor.mule,fj.editor.emacs
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.iij.ad.jp!iijnet!knife!moto
From: moto@kado.iijnet.or.jp (MOTOKADO Yoshihiro)
Subject: Re: frequent Garbage Collection
In-Reply-To: matto@aqua.chem.nagoya-u.ac.jp's message of 02 Sep 1994 15:47:55 JST
Content-Type: text/plain; charset=ISO-2022-JP
References: <MATTO.94Sep2154757@aqua.chem.nagoya-u.ac.jp>
Mime-Version: 1.0
Date: Sat, 3 Sep 1994 10:00:26 GMT
Message-ID: <MOTO.94Sep3190045@knife.kado.iijnet.or.jp>
Reply-To: moto@tokyo.jepro.co.jp
Lines: 35
Xref: galaxy.trc.rwcp.or.jp fj.editor.mule:185 fj.editor.emacs:4954
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.editor.emacs&nb=4954&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

In article <MATTO.94Sep2154757@aqua.chem.nagoya-u.ac.jp> matto@aqua.chem.nagoya-u.ac.jp (Masakazu MATSUMOTO) writes:

Masakazu> $B$I$3$r$I$&$$$8$l$P(BGC$B$r8:$i$;(B
Masakazu> $B$k$G$7$g$&$+!)(B

Emacs Lisp $B$NJQ?t(B gc-cons-threshold $B$NCM$rA}$d$;$P(B GC $B$N4V3V(B
$B$OD9$/$J$j$^$9$h!#(B

---
MOTOKADO, Yoshihiro / $BK\Lg5H9-(B
moto@tokyo.jepro.co.jp


GNU Emacs Lisp Reference Manual $B$h$j(B

 - User Option: gc-cons-threshold
     The value of this variable is the number of bytes of storage that
     must be allocated for Lisp objects after one garbage collection in
     order to request another garbage collection.  A cons cell counts
     as eight bytes, a string as one byte per character plus a few
     bytes of overhead, and so on.  (Space allocated to the contents of
     buffers does not count.)  Note that the new garbage collection
     does not happen immediately when the threshold is exhausted, but
     only the next time the Lisp evaluator is called.

     The initial threshold value is 100,000.  If you specify a larger
     value, garbage collection will happen less often.  This reduces the
     amount of time spent garbage collecting, but increases total
     memory use.  You may want to do this when running a program which
     creates lots of Lisp data.

     You can make collections more frequent by specifying a smaller
     value, down to 10,000.  A value less than 10,000 will remain in
     effect only until the subsequent garbage collection, at which time
     `garbage-collect' will set the threshold back to 10,000.
