From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: Huge performance problems to open some Org files Date: Fri, 17 Dec 2010 11:11:24 +0100 Message-ID: <4D0B374C.60406@diplan.de> References: <8062uswyie.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=46217 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTXHs-0007k4-Nl for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 05:11:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTXHr-0003ZW-EM for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 05:11:44 -0500 Received: from lo.gmane.org ([80.91.229.12]:56514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTXHq-0003Z7-Ti for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 05:11:43 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PTXHm-00067M-TA for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 11:11:38 +0100 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 11:11:38 +0100 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 11:11:38 +0100 In-Reply-To: <8062uswyie.fsf@missioncriticalit.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: public-emacs-orgmode-mXXj517/zsQ@lo.gmane.org Am 17.12.2010 10:15, schrieb Sébastien Vauban: > Hello, > > I've real performance problems for opening some Org files. Just some, > hopefully. I don't remember having those problems when I was on Ubuntu, and I > must already have opened it, back then, but... Anyway, I'm now (forced) on > Windows, and I have the problem. > > For example[fn:1], the small attached file takes me at least 6 s for opening it! > I really have no idea why. Why is it different from others, longer, that are > opened in a much shorter time? > > What did I do to try to spot the problem? > > M-x elp-instrument-package RET org- RET > M-x find-file RET > M-x elp-results. > > Here they are: > > #+begin_src emacs-lisp > org-mode 1 6.719 6.719 > org-set-regexps-and-options 1 0.203 0.203 > org-compute-latex-and-specials-regexp 1 0.203 0.203 > org-match-string-no-properties 35 0.016 0.0004571428 > org-infile-export-plist 2 0.016 0.008 > org-all-targets 1 0.0 0.0 > org-mode-p 13 0.0 0.0 > org-babel-result-hide-spec 1 0.0 0.0 > org-inlinetask-fontify 2 0.0 0.0 > org-bookmark-jump-unhide 1 0.0 0.0 > org-cycle 1 0.0 0.0 > org-unfontify-region 2 0.0 0.0 > org-agenda-files 1 0.0 0.0 > org-raise-scripts 2 0.0 0.0 > org-activate-dates 2 0.0 0.0 > org-point-at-end-of-empty-headline 1 0.0 0.0 > org-load-modules-maybe 2 0.0 0.0 > org-get-indentation 1 0.0 0.0 > org-remove-font-lock-display-properties 2 0.0 0.0 > org-mode-flyspell-verify 1 0.0 0.0 > org-clocking-p 1 0.0 0.0 > org-activate-footnote-links 2 0.0 0.0 > org-at-item-checkbox-p 1 0.0 0.0 > org-propertize 4 0.0 0.0 > org-babel-do-key-sequence-in-edit-buffer 1 0.0 0.0 > org-set-startup-visibility 1 0.0 0.0 > org-overview 1 0.0 0.0 > org-resolve-clocks-if-idle 1 0.0 0.0 > org-decompose-region 2 0.0 0.0 > org-make-options-regexp 3 0.0 0.0 > org-update-radio-target-regexp 1 0.0 0.0 > org-font-lock-add-priority-faces 2 0.0 0.0 > org-assign-fast-keys 1 0.0 0.0 > org-extract-log-state-settings 16 0.0 0.0 > org-install-agenda-files-menu 1 0.0 0.0 > org-babel-where-is-src-block-head 1 0.0 0.0 > org-do-latex-and-special-faces 2 0.0 0.0 > org-cycle-internal-global 1 0.0 0.0 > org-do-emphasis-faces 2 0.0 0.0 > org-link-display-format 3 0.0 0.0 > org-src-native-tab-command-maybe 1 0.0 0.0 > org-fontify-entities 2 0.0 0.0 > org-file-menu-entry 32 0.0 0.0 > org-set-visibility-according-to-property 1 0.0 0.0 > org-activate-bracket-links 2 0.0 0.0 > org-hide-archived-subtrees 1 0.0 0.0 > org-imenu-new-marker 3 0.0 0.0 > org-delete-all 1 0.0 0.0 > org-add-props 3 0.0 0.0 > org-cycle-hide-drawers 2 0.0 0.0 > org-clocking-buffer 1 0.0 0.0 > org-hh:mm-string-to-minutes 2 0.0 0.0 > org-combine-plists 1 0.0 0.0 > org-cycle-item-indentation 1 0.0 0.0 > org-clock-notify-once-if-expired 1 0.0 0.0 > org-optimize-window-after-visibility-change 1 0.0 0.0 > org-list-at-regexp-after-bullet-p 2 0.0 0.0 > org-set-font-lock-defaults 1 0.0 0.0 > org-make-target-link-regexp 1 0.0 0.0 > org-cycle-level 1 0.0 0.0 > org-fontify-meta-lines-and-blocks 10 0.0 0.0 > org-babel-hide-result-toggle-maybe 1 0.0 0.0 > org-float-time 4 0.0 0.0 > org-activate-angle-links 2 0.0 0.0 > org-hide-block-toggle-maybe 1 0.0 0.0 > org-clock-load 1 0.0 0.0 > org-activate-code 2 0.0 0.0 > org-font-lock-hook 2 0.0 0.0 > org-set-autofill-regexps 1 0.0 0.0 > org-cycle-show-empty-lines 2 0.0 0.0 > org-activate-target-links 2 0.0 0.0 > org-set-local 35 0.0 0.0 > org-clock-update-mode-line 1 0.0 0.0 > org-defkey 7 0.0 0.0 > org-clock-get-clock-string 1 0.0 0.0 > org-restart-font-lock 1 0.0 0.0 > org-add-hook 4 0.0 0.0 > org-remove-keyword-keys 3 0.0 0.0 > org-activate-plain-links 2 0.0 0.0 > org-font-lock-add-tag-faces 2 0.0 0.0 > org-cycle-hide-archived-subtrees 2 0.0 0.0 > org-at-table-p 1 0.0 0.0 > org-hide-wide-columns 2 0.0 0.0 > org-imenu-get-tree 1 0.0 0.0 > org-key 7 0.0 0.0 > org-at-item-p 4 0.0 0.0 > org-babel-hide-all-hashes 1 0.0 0.0 > org-default-export-plist 1 0.0 0.0 > org-activate-tags 2 0.0 0.0 > org-reduced-level 3 0.0 0.0 > org-at-item-description-p 1 0.0 0.0 > org-outline-level 7 0.0 0.0 > org-clock-get-clocked-time 2 0.0 0.0 > org-last 3 0.0 0.0 > org-invisible-p 2 0.0 0.0 > org-get-level-face 3 0.0 0.0 > #+end_src > > which confirms almost 7 s for just opening that small file into a buffer. > > Though, I don't see any potential explanation therefore. Could you help me > spotting the problem? > > Best regards, > Seb > > * Footnotes > [fn:1] I even have (longer) files that take longer to open... > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Sebastian, loading the file I get org-mode 2 0.078 0.039 org-agenda-files 2 0.047 0.0235 org-install-agenda-files-menu 2 0.047 0.0235 org-all-targets 2 0.0 0.0 org-babel-result-hide-spec 2 0.0 0.0 org-end-of-subtree 2 0.0 0.0 org-bookmark-jump-unhide 1 0.0 0.0 org-show-block-all 1 0.0 0.0 which is "no time". I am using GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched) Org-mode version 7.4 (release_7.4.57.gab22) on Windows XP, SP3. Doesn't help much I know but I do not think it is Windows related. - Rainer