From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Huge performance problems to open some Org files Date: Fri, 17 Dec 2010 13:29:56 +0100 Message-ID: <1C972FF9-236E-45EC-9885-EE69656F0769@gmail.com> References: <8062uswyie.fsf@missioncriticalit.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55446 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTZVK-00006U-HU for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 07:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTZRl-0006wE-IO for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 07:30:06 -0500 Received: from mail-ew0-f43.google.com ([209.85.215.43]:57797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTZRl-0006w1-3P for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 07:30:05 -0500 Received: by ewy22 with SMTP id 22so328090ewy.30 for ; Fri, 17 Dec 2010 04:30:04 -0800 (PST) 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: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org Hi Sebastien, it seems clear that it is not orgmode that causes the delays in its own functions. One way to find out what is goin on is this: Turn on debug-on-quite. The, when in this slow loading process, press C-g at random times and =20= see look at the functions in the backtrace. Instrument these functions or =20= better packages with epl as well and iterate until you find which =20 functions eat up the time. vc- stuff version control may be one likely offender. - Carsten On Dec 17, 2010, at 10:15 AM, S=E9bastien Vauban wrote: > 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 =20 > Ubuntu, and I > must already have opened it, back then, but... Anyway, I'm now =20 > (forced) on > Windows, and I have the problem. > > For example[fn:1], the small attached file takes me at least 6 s for =20= > opening it! > I really have no idea why. Why is it different from others, longer, =20= > 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 =20 > 1 6.719 6.719 > org-set-regexps-and-options =20 > 1 0.203 0.203 > org-compute-latex-and-specials-regexp =20 > 1 0.203 0.203 > org-match-string-no-properties =20 > 35 0.016 0.0004571428 > org-infile-export-plist =20 > 2 0.016 0.008 > org-all-targets =20 > 1 0.0 0.0 > org-mode-p =20 > 13 0.0 0.0 > org-babel-result-hide-spec =20 > 1 0.0 0.0 > org-inlinetask-fontify =20 > 2 0.0 0.0 > org-bookmark-jump-unhide =20 > 1 0.0 0.0 > org-cycle =20 > 1 0.0 0.0 > org-unfontify-region =20 > 2 0.0 0.0 > org-agenda-files =20 > 1 0.0 0.0 > org-raise-scripts =20 > 2 0.0 0.0 > org-activate-dates =20 > 2 0.0 0.0 > org-point-at-end-of-empty-headline =20 > 1 0.0 0.0 > org-load-modules-maybe =20 > 2 0.0 0.0 > org-get-indentation =20 > 1 0.0 0.0 > org-remove-font-lock-display-properties =20 > 2 0.0 0.0 > org-mode-flyspell-verify =20 > 1 0.0 0.0 > org-clocking-p =20 > 1 0.0 0.0 > org-activate-footnote-links =20 > 2 0.0 0.0 > org-at-item-checkbox-p =20 > 1 0.0 0.0 > org-propertize =20 > 4 0.0 0.0 > org-babel-do-key-sequence-in-edit-buffer =20 > 1 0.0 0.0 > org-set-startup-visibility =20 > 1 0.0 0.0 > org-overview =20 > 1 0.0 0.0 > org-resolve-clocks-if-idle =20 > 1 0.0 0.0 > org-decompose-region =20 > 2 0.0 0.0 > org-make-options-regexp =20 > 3 0.0 0.0 > org-update-radio-target-regexp =20 > 1 0.0 0.0 > org-font-lock-add-priority-faces =20 > 2 0.0 0.0 > org-assign-fast-keys =20 > 1 0.0 0.0 > org-extract-log-state-settings =20 > 16 0.0 0.0 > org-install-agenda-files-menu =20 > 1 0.0 0.0 > org-babel-where-is-src-block-head =20 > 1 0.0 0.0 > org-do-latex-and-special-faces =20 > 2 0.0 0.0 > org-cycle-internal-global =20 > 1 0.0 0.0 > org-do-emphasis-faces =20 > 2 0.0 0.0 > org-link-display-format =20 > 3 0.0 0.0 > org-src-native-tab-command-maybe =20 > 1 0.0 0.0 > org-fontify-entities =20 > 2 0.0 0.0 > org-file-menu-entry =20 > 32 0.0 0.0 > org-set-visibility-according-to-property =20 > 1 0.0 0.0 > org-activate-bracket-links =20 > 2 0.0 0.0 > org-hide-archived-subtrees =20 > 1 0.0 0.0 > org-imenu-new-marker =20 > 3 0.0 0.0 > org-delete-all =20 > 1 0.0 0.0 > org-add-props =20 > 3 0.0 0.0 > org-cycle-hide-drawers =20 > 2 0.0 0.0 > org-clocking-buffer =20 > 1 0.0 0.0 > org-hh:mm-string-to-minutes =20 > 2 0.0 0.0 > org-combine-plists =20 > 1 0.0 0.0 > org-cycle-item-indentation =20 > 1 0.0 0.0 > org-clock-notify-once-if-expired =20 > 1 0.0 0.0 > org-optimize-window-after-visibility-change =20 > 1 0.0 0.0 > org-list-at-regexp-after-bullet-p =20 > 2 0.0 0.0 > org-set-font-lock-defaults =20 > 1 0.0 0.0 > org-make-target-link-regexp =20 > 1 0.0 0.0 > org-cycle-level =20 > 1 0.0 0.0 > org-fontify-meta-lines-and-blocks =20 > 10 0.0 0.0 > org-babel-hide-result-toggle-maybe =20 > 1 0.0 0.0 > org-float-time =20 > 4 0.0 0.0 > org-activate-angle-links =20 > 2 0.0 0.0 > org-hide-block-toggle-maybe =20 > 1 0.0 0.0 > org-clock-load =20 > 1 0.0 0.0 > org-activate-code =20 > 2 0.0 0.0 > org-font-lock-hook =20 > 2 0.0 0.0 > org-set-autofill-regexps =20 > 1 0.0 0.0 > org-cycle-show-empty-lines =20 > 2 0.0 0.0 > org-activate-target-links =20 > 2 0.0 0.0 > org-set-local =20 > 35 0.0 0.0 > org-clock-update-mode-line =20 > 1 0.0 0.0 > org-defkey =20 > 7 0.0 0.0 > org-clock-get-clock-string =20 > 1 0.0 0.0 > org-restart-font-lock =20 > 1 0.0 0.0 > org-add-hook =20 > 4 0.0 0.0 > org-remove-keyword-keys =20 > 3 0.0 0.0 > org-activate-plain-links =20 > 2 0.0 0.0 > org-font-lock-add-tag-faces =20 > 2 0.0 0.0 > org-cycle-hide-archived-subtrees =20 > 2 0.0 0.0 > org-at-table-p =20 > 1 0.0 0.0 > org-hide-wide-columns =20 > 2 0.0 0.0 > org-imenu-get-tree =20 > 1 0.0 0.0 > org-key =20 > 7 0.0 0.0 > org-at-item-p =20 > 4 0.0 0.0 > org-babel-hide-all-hashes =20 > 1 0.0 0.0 > org-default-export-plist =20 > 1 0.0 0.0 > org-activate-tags =20 > 2 0.0 0.0 > org-reduced-level =20 > 3 0.0 0.0 > org-at-item-description-p =20 > 1 0.0 0.0 > org-outline-level =20 > 7 0.0 0.0 > org-clock-get-clocked-time =20 > 2 0.0 0.0 > org-last =20 > 3 0.0 0.0 > org-invisible-p =20 > 2 0.0 0.0 > org-get-level-face =20 > 3 0.0 0.0 > #+end_src > > which confirms almost 7 s for just opening that small file into a =20 > buffer. > > Though, I don't see any potential explanation therefore. Could you =20 > help me > spotting the problem? > > Best regards, > Seb > > * Footnotes > [fn:1] I even have (longer) files that take longer to open... > > --=20 > S=E9bastien Vauban > sloooooooooow.org>_______________________________________________ > 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