home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4151 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.8 KB  |  59 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.tu-berlin.DE!nickel
  3. From: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
  4. Subject: Re: gc-cons-threshold values
  5. Message-ID: <NICKEL.92Sep15192351@desaster.cs.tu-berlin.de>
  6. Followup-To: gnu.emacs.help
  7. Sender: gnulists@ai.mit.edu
  8. Reply-To: nickel@cs.tu-berlin.de
  9. Organization: STONE Project, Technical University of Berlin, Germany
  10. References: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
  11. Date: Tue, 15 Sep 1992 17:23:53 GMT
  12. Lines: 45
  13.  
  14. (I am crossposting this to gnu.emacs.help since it is more a "help"
  15. than a "bug" topic.)
  16.  
  17. In article <SCOTTM.92Sep14123426@intime.intime.com>
  18. scottm@intime.INTime.COM (Scott Michel) writes:
  19.  
  20. > What are the consequences of setting gc-cons-threshold, and secondly,
  21. > what are good values. I know the immediate consequences are that garbage
  22. > collection occurs less often, and probably takes longer to perform. Other
  23. > than those two, what else is there? What are good values?
  24.  
  25. Usually I feel perfectly comfortable with the default value (100000).
  26. But in my ~/.emacs some large packages are loaded (dired, ange-ftp,
  27. completion), such that with a gc-cons-threshold of 100000, three
  28. garbage collections would occur during the load. The resulting
  29. slow-down of Emacs' startup is significant (*some* seconds even on a
  30. SPARCstation 2). To avoid this, I temporarily increase the value of
  31. gc-cons-threshold:
  32.  
  33.  
  34. (let ((gc-cons-threshold 1000000))
  35.  
  36.   .
  37.   .    (several startup initializations)
  38.   .
  39.  
  40.   ;; files to be loaded
  41.   (require 'dired)
  42.   (require 'ange-ftp)
  43.   (load "time" nil t)
  44.   (load "uncompress" nil t)
  45.   (load "completion" nil t)
  46.   (initialize-completions)
  47.   (load (concat term-file-prefix (getenv "TERM")) t t nil)
  48.  
  49.   .
  50.   .    (other initializations)
  51.   .
  52.       )
  53.  
  54. This sped up the startup phase by a factor of 3.
  55.  
  56. --
  57. Juergen Nickelsen
  58.  
  59.