From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Opening (for the first time) a 10-line Org doc takes 4 seconds Date: Wed, 19 Dec 2012 10:05:53 +0100 Message-ID: <80a9tafm32.fsf@somewhere.org> References: <80licv564w.fsf@somewhere.org> <87obhrrl44.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien, Bastien wrote: > "Sebastien Vauban" writes: > >> (if (locate-library "org-loaddefs") >> (require 'org-loaddefs) > ^^^^^^^^^^^^^ > > You don't need this, there is (load "org-loaddefs.el" t t) in org.el. OK. And `org.el' is loaded[1] because of the major-mode association to the `.org' files, then, right? Anyway, that does not have impacts here. > Are your org elisp files compiled? Nope. Never. > What results do you have without the advice on `require'? I've now ran 5 tests with each config: | without advice | with advice | |----------------+-------------| | 3.78 | 3.95 | | 3.73 | 3.86 | | 3.76 | 3.83 | | 3.80 | 3.83 | | 3.81 | 3.94 | |----------------+-------------| | 3.78 | 3.88 | #+TBLFM: @7$1..@7$2=vmean(@I..@-I);%.2f That is less than 3% time penalty for the logs done during the execution of all the `require'. Best regards, Seb [1] BTW, why not a `require' instead? -- Sebastien Vauban