From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4287: reducing emacs size by more frequent garbage-collect Date: Mon, 31 Aug 2009 10:46:32 -0400 Message-ID: References: <200908291841.n7TIfw4E003762@godzilla.ics.uci.edu> <200908300609.n7U69Axh009778@godzilla.ics.uci.edu> Reply-To: Stefan Monnier , 4287@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251734239 19292 80.91.229.12 (31 Aug 2009 15:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 15:57:19 +0000 (UTC) Cc: 4287@emacsbugs.donarmstrong.com To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 31 17:57:12 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mi9Fl-0004Iz-Rb for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 17:57:10 +0200 Original-Received: from localhost ([127.0.0.1]:42116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9Fl-0001Jf-9C for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 11:57:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi8TM-0000Nk-BJ for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2009 11:07:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi8TF-0000K3-Bh for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2009 11:07:06 -0400 Original-Received: from [199.232.76.173] (port=36652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi8TC-0000Je-OI for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2009 11:06:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52126) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mi8TC-0005M5-4w for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2009 11:06:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7VF6tdt019694; Mon, 31 Aug 2009 08:06:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7VEt9BA016593; Mon, 31 Aug 2009 07:55:09 -0700 Resent-Date: Mon, 31 Aug 2009 07:55:09 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 31 Aug 2009 14:55:09 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4287 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4287-submit@emacsbugs.donarmstrong.com id=B4287.125173000015029 (code B ref 4287); Mon, 31 Aug 2009 14:55:09 +0000 Original-Received: (at 4287) by emacsbugs.donarmstrong.com; 31 Aug 2009 14:46:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7VEkcuc015017 for <4287@emacsbugs.donarmstrong.com>; Mon, 31 Aug 2009 07:46:40 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAEJ/m0pFpYuS/2dsb2JhbACBU9ZJhBoFh2g X-IronPort-AV: E=Sophos;i="4.44,305,1249272000"; d="scan'208";a="44603970" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO ceviche.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 31 Aug 2009 10:45:28 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0BC1E70048; Mon, 31 Aug 2009 10:46:33 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Sun, 30 Aug 2009 22:45:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 31 Aug 2009 11:07:05 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30682 Archived-At: >> Sorry, too ugly to be worth the few bytes (especially since these are >> bytes you'll be using anyway as soon as you start Emacs). > I've often wondered why there is no `after-load-hook' or > `after-load-functions', run directly from (the end of) Fload. Then we > could do now We could replace the call from C to do-after-load-evaluation by Frun_hooks(Qafter-load-functions), either passing it the file name explicitly or making sure load-file-name is still set. > which is not so easy or elegant with `after-load-alist' (whose > regexp-matching functionality is implemented in elisp, AFAICS). Doesn't something like (push '("" (garbage-collect)) after-load-alist) do the trick? Oh I see it doesn't because we check purify-flag. Clearly this check could be removed if we use after-load-functions. Stefan