home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.tu-berlin.DE!nickel
- From: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
- Subject: Re: gc-cons-threshold values
- Message-ID: <NICKEL.92Sep15192351@desaster.cs.tu-berlin.de>
- Followup-To: gnu.emacs.help
- Sender: gnulists@ai.mit.edu
- Reply-To: nickel@cs.tu-berlin.de
- Organization: STONE Project, Technical University of Berlin, Germany
- References: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
- Date: Tue, 15 Sep 1992 17:23:53 GMT
- Lines: 45
-
- (I am crossposting this to gnu.emacs.help since it is more a "help"
- than a "bug" topic.)
-
- In article <SCOTTM.92Sep14123426@intime.intime.com>
- scottm@intime.INTime.COM (Scott Michel) writes:
-
- > What are the consequences of setting gc-cons-threshold, and secondly,
- > what are good values. I know the immediate consequences are that garbage
- > collection occurs less often, and probably takes longer to perform. Other
- > than those two, what else is there? What are good values?
-
- Usually I feel perfectly comfortable with the default value (100000).
- But in my ~/.emacs some large packages are loaded (dired, ange-ftp,
- completion), such that with a gc-cons-threshold of 100000, three
- garbage collections would occur during the load. The resulting
- slow-down of Emacs' startup is significant (*some* seconds even on a
- SPARCstation 2). To avoid this, I temporarily increase the value of
- gc-cons-threshold:
-
-
- (let ((gc-cons-threshold 1000000))
-
- .
- . (several startup initializations)
- .
-
- ;; files to be loaded
- (require 'dired)
- (require 'ange-ftp)
- (load "time" nil t)
- (load "uncompress" nil t)
- (load "completion" nil t)
- (initialize-completions)
- (load (concat term-file-prefix (getenv "TERM")) t t nil)
-
- .
- . (other initializations)
- .
- )
-
- This sped up the startup phase by a factor of 3.
-
- --
- Juergen Nickelsen
-
-