From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: reducing emacs size by more frequent garbage-collect in loadup.el Date: Mon, 27 Jul 2009 11:00:58 +0900 Message-ID: <8763de6g11.fsf@uwakimon.sk.tsukuba.ac.jp> References: <200907261756.n6QHuRSS010699@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248660296 13086 80.91.229.12 (27 Jul 2009 02:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 02:04:56 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 04:04:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVFa3-0001GD-B1 for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 04:04:47 +0200 Original-Received: from localhost ([127.0.0.1]:55715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVFa2-0002X9-Ss for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2009 22:04:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVFZy-0002X4-VT for emacs-devel@gnu.org; Sun, 26 Jul 2009 22:04:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVFZu-0002Ws-Fg for emacs-devel@gnu.org; Sun, 26 Jul 2009 22:04:42 -0400 Original-Received: from [199.232.76.173] (port=49271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVFZu-0002Wp-Cg for emacs-devel@gnu.org; Sun, 26 Jul 2009 22:04:38 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:34932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVFZt-0001kK-PZ for emacs-devel@gnu.org; Sun, 26 Jul 2009 22:04:38 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id DDFBA820D; Mon, 27 Jul 2009 11:04:35 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 5F7B51A3002; Mon, 27 Jul 2009 11:00:58 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 5bbff3553494 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113190 Archived-At: Stefan Monnier writes: > I'd rather not uglify loadup.el with tons of calls to garbage-collect, > but maybe it's OK to replace all calls to load by calls to load&gc. > BTW, how does it affect the time to dump Emacs? I don't recall the mechanism offhand, but XEmacs has always (for values of "always" == as long as I've known anything about the dump process) gc'd after every load during dump. This has caused zero complaints that I am aware of. For developers, there's an optional --quickbuild configure option which disables GC entirely during the default make (as well as not generating info or DOC or finder.el, etc). Obviously not something you want for a production Emacs, but may be just the ticket for people doing delicate work on the C code or Lisp primitives.