From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: package.el should be preloaded Date: Mon, 01 Nov 2010 11:01:15 -0400 Message-ID: <87lj5dozpg.fsf@stupidchicken.com> References: <8htyk6zrvp.fsf@fencepost.gnu.org> <87iq0j2pf7.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288623718 6353 80.91.229.12 (1 Nov 2010 15:01:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2010 15:01:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 01 16:01:54 2010 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.69) (envelope-from ) id 1PCvtH-00042h-Tf for ged-emacs-devel@m.gmane.org; Mon, 01 Nov 2010 16:01:51 +0100 Original-Received: from localhost ([127.0.0.1]:54536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCvtA-0003Pv-1r for ged-emacs-devel@m.gmane.org; Mon, 01 Nov 2010 11:01:36 -0400 Original-Received: from [140.186.70.92] (port=52517 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCvt1-0003OT-VL for emacs-devel@gnu.org; Mon, 01 Nov 2010 11:01:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCvss-0000X8-3z for emacs-devel@gnu.org; Mon, 01 Nov 2010 11:01:19 -0400 Original-Received: from pantheon-po43.its.yale.edu ([130.132.50.104]:40858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCvsr-0000X2-UQ for emacs-devel@gnu.org; Mon, 01 Nov 2010 11:01:18 -0400 Original-Received: from furball (dhcp128036014027.central.yale.edu [128.36.14.27]) (authenticated bits=0) by pantheon-po43.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id oA1F1GLZ008949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 1 Nov 2010 11:01:16 -0400 Original-Received: by furball (Postfix, from userid 1000) id 9A36D16108B; Mon, 1 Nov 2010 11:01:15 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Sun, 31 Oct 2010 21:20:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:132236 Archived-At: Stefan Monnier writes: > That's really strange. The code needed at startup shouldn't need to be > that large. Of course, that was part of the reason why I want(ed) all > the job of finding which packages to load in which order to be done > "offline" rather than at startup. The total length of package.el is 1642 lines. Of these, the code necessary to load and activate packages at startup comes to around 590 lines, or about 16k of memory in the .elc. (The rest is the code for downloading and installing, and for the package menu.) Splitting package.el is certainly doable, but all it will save us is around 30k. I'm not sure it's worth it.