[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Opening an Org file slowed down
From: |
Nicolas Richard |
Subject: |
Re: [O] Opening an Org file slowed down |
Date: |
Wed, 27 Nov 2013 18:10:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Michael Brand <address@hidden> writes:
> On Wed, Nov 27, 2013 at 12:27 PM, Nicolas Richard
>> M-: (insert (mapconcat #'car load-history "\n"))
>
> It shows a difference, see attachements.
It seems from my own tests that in the `org-version' case, org-element
is in fact not used.
Example with org-element loaded:
$ emacs --batch -Q -L /home/youngfrog/sources/org-mode/lisp -l org-element
--eval '(elp-instrument-package "org")' 400.org --eval '(elp-results)'
OVERVIEW
Loading vc-git...
Function Name Call Count Elapsed Time
Average Time
================================================== ========== ============
============
org-mode 1 5.400860453
5.400860453
org-set-startup-visibility 1 5.313854095
5.313854095
org-cycle-hide-drawers 2 5.3121005389
2.6560502694
org-element-at-point 400 5.266095204
0.0131652380
org-element-cache-get 82199 0.6185547400
7.525...e-06
org-element-type 162000 0.2590344329
1.598...e-06
org-element-put-property 81401 0.1565762810
1.923...e-06
org-element--current-element 1201 0.1494111070
0.0001244055
org-element-property 88592 0.1363126259
1.538...e-06
org-element--cache-pending-changes-p 82197 0.1144674349
1.392...e-06
org-load-modules-maybe 2 0.08437738
0.04218869
org-flag-drawer 400 0.0376304490
9.407...e-05
org-element-item-parser 400 0.0275906270
6.897...e-05
org-element-cache-put 1201 0.0250324789
2.084...e-05
org-element-cache-reset 1 0.023597284
0.023597284
org-element--list-struct 1 0.010440769
0.010440769
org-element-paragraph-parser 400 0.0072944419
1.823...e-05
org-at-heading-p 2801 0.0071912889
2.567...e-06
org-get-limited-outline-regexp 2401 0.0061038529
2.542...e-06
org-match-string-no-properties 1200 0.0054390299
4.532...e-06
org-element-property-drawer-parser 400 0.0045985369
1.149...e-05
org-element--collect-affiliated-keywords 401 0.0031594279
7.878...e-06
org-looking-at-p 2399 0.0028486419
1.187...e-06
org-list-get-tag 400 0.0027069029
6.767...e-06
org-string-match-p 1199 0.0020501510
1.709...e-06
org-cycle-show-empty-lines 2 0.000984001
0.0004920005
org-list-get-nth 400 0.0008991660
2.247...e-06
org-cycle 1 0.000850248
0.000850248
org-cycle-internal-global 1 0.000763145
0.000763145
org-set-regexps-and-options 1 0.000669289
0.000669289
org-element-plain-list-parser 1 0.000519329
0.000519329
org-add-link-type 8 0.0004422659
5.528...e-05
org-element-restriction 401 0.0004163749
1.038...e-06
org-macro-initialize-templates 1 0.000405989
0.000405989
org-make-link-regexps 8 0.0003423549
4.279...e-05
org-set-visibility-according-to-property 1 0.000317979
0.000317979
org-babel-hide-all-hashes 1 0.000316974
0.000316974
org-macro--collect-macros 1 0.000306365
0.000306365
org-overview 1 0.000227539
0.000227539
org-set-regexps-and-options-for-tags 1 0.000193121
0.000193121
org-update-radio-target-regexp 1 0.000179085
0.000179085
org-all-targets 1 0.000164694
0.000164694
org-install-agenda-files-menu 1 0.00012613
0.00012613
org-set-local 45 7.178...e-05
1.595...e-06
org-unlogged-message 1 5.5189e-05
5.5189e-05
org-setup-filling 1 4.4196e-05
4.4196e-05
org-add-hook 5 2.937...e-05
5.874e-06
org-find-invisible-foreground 1 2.9127e-05
2.9127e-05
org-set-font-lock-defaults 1 2.9031e-05
2.9031e-05
org-setup-comments-handling 1 2.7605e-05
2.7605e-05
org-cycle-hide-archived-subtrees 2 2.2149e-05
1.10745e-05
org-outline-level 2 1.9673e-05
9.8365e-06
org-cycle-item-indentation 1 1.7888e-05
1.7888e-05
org-at-item-p 1 1.3829e-05
1.3829e-05
org-hide-archived-subtrees 1 1.2179e-05
1.2179e-05
org-assign-fast-keys 1 1.2102e-05
1.2102e-05
org-babel-hide-result-toggle-maybe 1 1.0614e-05
1.0614e-05
org-extract-log-state-settings 2 8.745e-06
4.3725e-06
org-make-options-regexp 2 8.394e-06
4.197e-06
org-compute-latex-and-related-regexp 1 8.306e-06
8.306e-06
org-at-table-p 2 7.307e-06
3.6535e-06
org-back-to-heading 2 7.261...e-06
3.630...e-06
org-cycle-level 1 6.653e-06
6.653e-06
org-item-re 3 5.786e-06
1.928...e-06
org-agenda-files 1 4.545e-06
4.545e-06
org-hide-block-toggle-maybe 1 4.385e-06
4.385e-06
org-optimize-window-after-visibility-change 1 3.428e-06
3.428e-06
org-defvaralias 1 2.774e-06
2.774e-06
org-point-at-end-of-empty-headline 1 2.217e-06
2.217e-06
org-uniquify 1 2.12e-06
2.12e-06
org-delete-all 1 1.552e-06
1.552e-06
org-babel-header-arg-expand 1 1.451e-06
1.451e-06
org-restart-font-lock 1 1.352e-06
1.352e-06
org-babel-result-hide-spec 1 1.313e-06
1.313e-06
org-cycle-hide-inline-tasks 1 1.071e-06
1.071e-06
org-last 1 8.92e-07
8.92e-07
org-make-target-link-regexp 1 7.22e-07
7.22e-07
org-src-native-tab-command-maybe 1 6.71e-07
6.71e-07
Example with just org loaded :
$ emacs --batch -Q -L /home/youngfrog/sources/org-mode/lisp -l org --eval
'(elp-instrument-package "org")' 400.org --eval '(elp-results)'
OVERVIEW
Loading vc-git...
Function Name Call Count Elapsed Time
Average Time
================================================== ========== ============
============
org-mode 1 1.81576679
1.81576679
org-set-startup-visibility 1 1.684879967
1.684879967
org-cycle-hide-drawers 2 1.683092877
0.8415464385
org-load-modules-maybe 2 0.082674777
0.0413373885
org-setup-filling 1 0.045604327
0.045604327
org-at-heading-p 2801 0.0302115869
1.078...e-05
org-flag-drawer 400 0.0079607380
1.990...e-05
org-get-limited-outline-regexp 2401 0.0059861829
2.493...e-06
org-match-string-no-properties 1200 0.0031827320
2.652...e-06
org-looking-at-p 2399 0.0027856489
1.161...e-06
org-list-get-tag 400 0.0024748909
6.187...e-06
org-string-match-p 1199 0.0018854590
1.572...e-06
org-cycle-show-empty-lines 2 0.0009863279
0.0004931639
org-cycle 1 0.000876598
0.000876598
org-cycle-internal-global 1 0.000782872
0.000782872
org-list-get-nth 400 0.0007689499
1.922375e-06
org-set-regexps-and-options 1 0.000670828
0.000670828
org-add-link-type 8 0.000492713
6.158...e-05
org-make-link-regexps 8 0.0003960509
4.950...e-05
org-macro-initialize-templates 1 0.000391607
0.000391607
org-set-visibility-according-to-property 1 0.000324637
0.000324637
org-babel-hide-all-hashes 1 0.000311911
0.000311911
org-macro--collect-macros 1 0.000308412
0.000308412
org-overview 1 0.000243215
0.000243215
org-update-radio-target-regexp 1 0.000196982
0.000196982
org-set-regexps-and-options-for-tags 1 0.000194546
0.000194546
org-all-targets 1 0.000181915
0.000181915
org-install-agenda-files-menu 1 0.000125493
0.000125493
org-set-local 45 8.570...e-05
1.904...e-06
org-unlogged-message 1 5.6948e-05
5.6948e-05
org-add-hook 5 3.2122e-05
6.424...e-06
org-setup-comments-handling 1 2.8608e-05
2.8608e-05
org-find-invisible-foreground 1 2.8233e-05
2.8233e-05
org-set-font-lock-defaults 1 2.7707e-05
2.7707e-05
org-cycle-hide-archived-subtrees 2 2.2004e-05
1.1002e-05
org-outline-level 2 1.9321e-05
9.6605e-06
org-cycle-item-indentation 1 1.5876e-05
1.5876e-05
org-assign-fast-keys 1 1.2067e-05
1.2067e-05
org-at-item-p 1 1.1713e-05
1.1713e-05
org-babel-hide-result-toggle-maybe 1 1.1713e-05
1.1713e-05
org-hide-archived-subtrees 1 1.17e-05
1.17e-05
org-hide-block-toggle-maybe 1 1.1425e-05
1.1425e-05
org-make-options-regexp 2 9.234...e-06
4.617...e-06
org-compute-latex-and-related-regexp 1 8.743e-06
8.743e-06
org-extract-log-state-settings 2 8.524e-06
4.262e-06
org-at-table-p 2 7.683e-06
3.8415e-06
org-back-to-heading 2 7.213e-06
3.6065e-06
org-item-re 3 6.761e-06
2.253...e-06
org-cycle-level 1 6.732e-06
6.732e-06
org-agenda-files 1 4.561e-06
4.561e-06
org-uniquify 1 3.837e-06
3.837e-06
org-defvaralias 1 2.939e-06
2.939e-06
org-point-at-end-of-empty-headline 1 2.255e-06
2.255e-06
org-optimize-window-after-visibility-change 1 2.025e-06
2.025e-06
org-delete-all 1 1.566e-06
1.566e-06
org-restart-font-lock 1 1.493e-06
1.493e-06
org-babel-result-hide-spec 1 1.394e-06
1.394e-06
org-babel-header-arg-expand 1 1.223e-06
1.223e-06
org-cycle-hide-inline-tasks 1 1.215e-06
1.215e-06
org-last 1 8.82e-07
8.82e-07
org-make-target-link-regexp 1 8.18e-07
8.18e-07
org-src-native-tab-command-maybe 1 7.89e-07
7.89e-07
But I don't know what happens behind the scenes
--
Nico.
- Re: [O] Opening an Org file slowed down, (continued)
- Re: [O] Opening an Org file slowed down, Nicolas Goaziou, 2013/11/26
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/26
- Re: [O] Opening an Org file slowed down, Nicolas Goaziou, 2013/11/26
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/26
- Re: [O] Opening an Org file slowed down, Nicolas Goaziou, 2013/11/26
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/27
- Re: [O] Opening an Org file slowed down, Nicolas Richard, 2013/11/27
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/27
- Re: [O] Opening an Org file slowed down,
Nicolas Richard <=
- Re: [O] Opening an Org file slowed down, Achim Gratz, 2013/11/27
- Re: [O] Opening an Org file slowed down, Nicolas Richard, 2013/11/28
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/28
- Re: [O] Opening an Org file slowed down, Achim Gratz, 2013/11/27
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/27
- Re: [O] Opening an Org file slowed down, Achim Gratz, 2013/11/27
- Re: [O] Opening an Org file slowed down, Michael Brand, 2013/11/27