emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Huge performance problems to open some Org files
@ 2010-12-17  9:15 Sébastien Vauban
  2010-12-17 10:11 ` Rainer Stengele
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Sébastien Vauban @ 2010-12-17  9:15 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

[-- Attachment #1: Type: text/plain, Size: 9914 bytes --]

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 <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...

-- 
Sébastien Vauban

[-- Attachment #2: tags-opening-it-is-sloooooooooow.org --]
[-- Type: text/org, Size: 2187 bytes --]

#+TITLE:     Tags FIXME
#+AUTHOR:    Fabrice Niessen
#+EMAIL:     fni-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org
#+DATE:      2010-07-08
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en_US

#+STYLE:        <style type="text/css">a#current-tags { background: url('http://www.mygooglest.com/fni/pic/current.gif') no-repeat; background-position: 101% center; cursor: text;}</style>

This page is useless for you. It's only for me, for testing some code.

Ce texte est en français.
This is in English.
Estando en español.

* 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 777777789 888888889 999999999 000000000 000000000
   # script -- What it does
   # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc

   tempfile="/tmp/$(basename $0).tmp"

   # 80 chars exactly =============================================================

   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 777777789 888888889 999999999 000000000 000000000
   # script -- What it does
   # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc

   tempfile="/tmp/$(basename $0).tmp"

   # 80 chars exactly =============================================================

   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

[-- Attachment #3: Type: text/plain, Size: 222 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-05-18 20:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-17  9:15 Huge performance problems to open some Org files Sébastien Vauban
2010-12-17 10:11 ` Rainer Stengele
2010-12-17 10:44   ` Sébastien Vauban
2010-12-17 12:17 ` Andrew J. Korty
2010-12-17 12:29 ` Carsten Dominik
2010-12-17 13:26   ` Sébastien Vauban
2010-12-20 19:29     ` Vladimir Alexiev
2011-05-12 22:27       ` Sebastien Vauban
2011-05-13  9:49         ` Eric S Fraga
2011-05-13 10:15         ` Carsten Dominik
2011-05-18 20:09           ` Sebastien Vauban
2010-12-17 15:46 ` Nick Dokos
2010-12-17 21:55 ` Achim Gratz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).