From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: From latest maint/master, no need to (require 'org-install) Date: Sat, 27 Oct 2012 10:49:41 +0200 Message-ID: <87625wpae2.fsf@bzg.ath.cx> References: <87boglvwur.fsf@bzg.ath.cx> <87sj9vj4a1.fsf@bzg.ath.cx> <87zk43419r.fsf@ucl.ac.uk> <80ipap2tx9.fsf@somewhere.org> <87y5jjt550.fsf@ucl.ac.uk> <87y5jibteg.fsf@Rainer.invalid> <80ehl8jg9q.fsf@somewhere.org> <80sj9o85ke.fsf@somewhere.org> <87haq3y1tj.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS255-0002bt-Cd for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 04:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS254-0003x2-BU for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 04:49:23 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:52276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS254-0003wy-15 for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 04:49:22 -0400 Received: by mail-we0-f169.google.com with SMTP id u3so2034118wey.0 for ; Sat, 27 Oct 2012 01:49:21 -0700 (PDT) In-Reply-To: <87haq3y1tj.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 09 Oct 2012 19:47:52 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: >> Starting Emacs now requires ~18 seconds vs 2 seconds before. > > That is one of the consequences of how org.el is currently structured. The move to using org-loaddefs.el was to optimize things within Emacs. Before org-loaddefs.el, all Org's autoloads were added to loaddefs.el. This had the effect of preloading too many Org's functions in a bare "emacs -Q". After org-loaddefs.el, only the core Org functions are added to Emacs' loaddefs.el. The time you spare by not preloading all autoloads in loaddefs.el is lost when you require org for the first time -- either in your config or by simply finding a new .org file. But on the overall, I think it's cleaner that way. The next step to optimize things a bit is to have less autoloads in org-autoloads.el... any suggestion is welcome in this area! -- Bastien