From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Huge performance problems to open some Org files Date: Fri, 17 Dec 2010 10:15:53 +0100 Message-ID: <8062uswyie.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 openin= g 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... --=20 S=C3=A9bastien Vauban --=-=-= Content-Type: text/org; charset=utf-8 Content-Disposition: attachment; filename=tags-opening-it-is-sloooooooooow.org Content-Transfer-Encoding: quoted-printable #+TITLE: Tags FIXME #+AUTHOR: Fabrice Niessen #+EMAIL: fni-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org #+DATE: 2010-07-08 #+DESCRIPTION:=20 #+KEYWORDS:=20 #+LANGUAGE: en_US #+STYLE: This page is useless for you. It's only for me, for testing some code. Ce texte est en fran=C3=A7ais. This is in English. Estando en espa=C3=B1ol. * Environments The following are different environments, from the best to the less good... The worse are not even shown ;-) See http://orgmode.org/manual/Literal-examples.html#Literal-examples. ** Src with highlighting #+BEGIN_SRC sh #!/bin/sh #!/bin/sh 123456789 223456789 333456789 444456789 555556789 666666789 77= 7777789 888888889 999999999 000000000 000000000 # script -- What it does # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2= 345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc tempfile=3D"/tmp/$(basename $0).tmp" # 80 chars exactly =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D trap "/bin/rm -f $tempfile" EXIT HUP INT QUIT TERM function usage() { cat << EOF >&2 Usage: $(basename $0) flags... Where... EOF exit 1 } if [ $# -eq 0 ]; then usage fi #+END_SRC ** Example #+BEGIN_EXAMPLE #!/bin/sh #!/bin/sh 123456789 223456789 333456789 444456789 555556789 666666789 77= 7777789 888888889 999999999 000000000 000000000 # script -- What it does # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2= 345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc tempfile=3D"/tmp/$(basename $0).tmp" # 80 chars exactly =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D trap "/bin/rm -f $tempfile" EXIT HUP INT QUIT TERM function usage() { cat << EOF >&2 Usage: $(basename $0) flags... Where... EOF exit 1 } if [ $# -eq 0 ]; then usage fi #+END_EXAMPLE --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--