all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* in 28, massive slowness in capture, folding, and org-show-context
@ 2024-07-11 21:50 Samuel Wales
  2024-07-12 11:06 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2024-07-11 21:50 UTC (permalink / raw)
  To: emacs-orgmode

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

***** NAKA capture, folding, and org-show-context slow in 28
folding and unfolding in a large .org is slow.
******* results for capture
capture takes many seconds usually before the capture buffer
comes up.  idk if these results are useful.  here are
results for capturing one regular and one with selection.
********* capture slow cpu
18018  99% - command-execute
       18018  99%  - call-interactively
       18018  99%   - apply
       18018  99%    - call-interactively@ido-cr+-record-current-command
       18018  99%     - let
       18018  99%      - apply
       18018  99%       - #<subr call-interactively>
       18018  99%        - funcall-interactively
       17488  96%         - #<compiled -0x10a881d815010840>
       17488  96%          - org-capture
       17434  96%           - org-capture-place-template
       17398  96%            - org-fold-show-all
       17370  96%             - org-fold-region
       11415  63%              - org-fold-core-get-regions
       11371  62%               - org-fold-core-next-folding-state-change
          16   0%                - mapcar
           8   0%                   #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23>
           4   0%                   #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_22>
           4   0%                  mapc
          20   0%               - org-fold-core-get-folding-spec
           4   0%                  org-fold-core-get-folding-spec-from-alias
           8   0%                 org-fold-core-get-region-at-point
        5911  32%              - org-fold-core--property-symbol-get-create
           4   0%                 org-fold-core--property-symbol-get-create
          20   0%                font-lock-flush
          16   0%            - pop-to-buffer
          16   0%             - display-buffer
          16   0%              - org-display-buffer-split
          16   0%                 display-buffer-pop-up-window
           8   0%              org-capture-get-indirect-buffer
           8   0%            - org-capture-place-entry
           4   0%             - org-paste-subtree
           4   0%                org-map-region
           4   0%            - org-capture-mode
           4   0%               substitute-command-keys
          54   0%           - org-capture-fill-template
          24   0%            - org-mode
           8   0%             - org-set-regexps-and-options
           4   0%              - org-collect-keywords
           4   0%               - org--collect-keywords-1
           4   0%                - org-make-options-regexp
           4   0%                 - regexp-opt
           4   0%                  - regexp-opt-group
           4   0%                   - regexp-opt-group
           4   0%                    - regexp-opt-group
           4   0%                     - regexp-opt-group
           4   0%                      - regexp-opt-group
           4   0%                       - regexp-opt-group
           4   0%                        - regexp-opt-group
           4   0%                         - regexp-opt-group
           4   0%                          - regexp-opt-group
           4   0%                           - regexp-opt-group
           4   0%                              regexp-opt-group
           4   0%              - regexp-opt
           4   0%               - regexp-opt-group
           4   0%                - regexp-opt-group
           4   0%                 - regexp-opt-group
           4   0%                  - regexp-opt-group
           4   0%                   - regexp-opt-group
           4   0%                    - regexp-opt-group
           4   0%                     - regexp-opt-group
           4   0%                      - regexp-opt-group
           4   0%                       - regexp-opt-group
           4   0%                        - regexp-opt-group
           4   0%                           regexp-opt-group
           4   0%             - org-install-agenda-files-menu
           4   0%                org-agenda-files
           4   0%             - outline-mode
           4   0%              - add-hook
           4   0%               - #<compiled 0x16db4ce47149724e>
           4   0%                  alist-get
          11   0%            - switch-to-buffer-other-window
          11   0%             - pop-to-buffer
          11   0%              - display-buffer
          11   0%               -
display-buffer--maybe-pop-up-frame-or-window
          11   0%                - display-buffer--maybe-pop-up-window
          11   0%                   display-buffer-pop-up-window
           7   0%            - org-get-x-clipboard
           7   0%             - gui-get-selection
           7   0%              - gui-backend-get-selection
           7   0%               - apply
           7   0%                  #<compiled -0x8b19310558fbded>
           4   0%              org-fold-core--fix-folded-region
           4   0%              org-clone-local-variables
           4   0%            - org-capture-expand-embedded-elisp
           4   0%             - org-fold-core--fix-folded-region
           4   0%                org-fold-core-region-folded-p
         295   1%         - org-capture-finalize
         199   1%          - org-update-parent-todo-statistics
         167   0%           - org-up-heading-safe
         167   0%            - org-element-at-point
         163   0%             - org-element--parse-to
         163   0%                #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38>
          32   0%           - org-entry-get
          32   0%            - org-entry-get-with-inheritance
          32   0%             - org-element-lineage-map
          32   0%              - #<compiled 0x9d8a0445d08076d>
          32   0%               - org--property-local-values
          32   0%                - org-element--property
          32   0%                 - org-element--property
          32   0%                  - apply
          28   0%
org-element--get-global-node-properties
           4   0%                     org-element--headline-deferred
          89   0%          - save-buffer
          89   0%           - apply
          89   0%            - ad-Advice-save-buffer
          89   0%             - #<subr save-buffer>
          89   0%              - basic-save-buffer
          89   0%               - basic-save-buffer-1
          89   0%                - basic-save-buffer-2
           4   0%                 - write-region
           4   0%                    select-safe-coding-system
           4   0%          - org-capture-store-last-position
           4   0%           - bookmark-set
           4   0%            - bookmark-set-internal
           4   0%               bookmark-store
           3   0%          - kill-buffer
           3   0%           - replace-buffer-in-windows
           3   0%              switch-to-prev-buffer
         211   1%         - ido-hacks-execute-extended-command
         201   1%          - completing-read
         201   1%           - apply
         201   1%            - ad-Advice-completing-read
         140   0%             - ido-read-internal
         140   0%              - apply
         140   0%               - ad-Advice-ido-read-internal
         140   0%                - #<subr ido-read-internal>
         124   0%                 - read-from-minibuffer
          79   0%                  - ido-exhibit
          79   0%                   - apply
          79   0%                    - #<subr ido-exhibit>
          44   0%                     - ido-set-matches
          44   0%                      - ido-set-matches-1
          44   0%                       - apply
          44   0%                        - ido-clever-match
          32   0%                         - ido-clever-match--match
          28   0%                            ido-clever-match--score
          12   0%                         - apply
          12   0%                          - #<compiled 0x154daee8fd3cd44>
          12   0%                           - apply
          12   0%                            - ad-Advice-ido-set-matches-1
          12   0%                             - #<subr ido-set-matches-1>
          12   0%                              - mapc
          12   0%                                 #<compiled
-0x106af6854f37e99a>
          35   0%                     - ido-set-common-completion
          31   0%                        ido-find-common-substring
          14   0%                  - timer-event-handler
          14   0%                   - apply
          12   0%                      mouse-avoidance-banish
           2   0%                      #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_12>
           4   0%                  - minibuffer-mode
           4   0%                   - global-font-lock-mode-cmhh
           4   0%                    - add-hook
           4   0%                     - #<compiled 0x16db4ce47149724e>
           4   0%                        alist-get
          12   0%                 - ido-set-matches
          12   0%                  - ido-set-matches-1
          12   0%                   - apply
          12   0%                    - ido-clever-match
          12   0%                     - apply
          12   0%                      - #<compiled 0x154daee8fd3cd44>
          12   0%                       - apply
          12   0%                        - ad-Advice-ido-set-matches-1
          12   0%                         - #<subr ido-set-matches-1>
          12   0%                          - mapc
          12   0%                             #<compiled
-0x106af6854f37e99a>
          61   0%             - ido-hacks-make-completions
          36   0%              - ido-hacks-completions-sort
          28   0%                 sort
          10   0%          - call-interactively
          10   0%           - apply
          10   0%            - call-interactively@ido-cr
+-record-current-command
          10   0%             - let
          10   0%              - apply
          10   0%               - #<subr call-interactively>
          10   0%                  funcall-interactively
          24   0%         - org-self-insert-command
          24   0%          - apply
           8   0%           - #<subr org-self-insert-command>
           8   0%              org-element--cache-after-change
          33   0% + timer-event-handler
           0   0% + ...
********* capture slow mem
62,678,836  99% - command-execute
     62,678,836  99%  - call-interactively
     62,678,836  99%   - apply
     62,678,836  99%    - call-interactively@ido-cr+-record-current-command
     62,678,836  99%     - let
     62,678,836  99%      - apply
     62,678,836  99%       - #<subr call-interactively>
     62,678,836  99%        - funcall-interactively
     30,559,871  48%         - #<compiled -0x10a881d815010840>
     30,559,871  48%          - org-capture
     28,076,707  44%           - org-capture-place-template
     22,027,056  34%            - org-fold-show-all
     22,027,056  34%             - org-fold-region
     14,672,648  23%              - org-fold-core-get-regions
     14,669,808  23%                 org-fold-core-next-folding-state-change
          2,840   0%               - org-fold-core-get-folding-spec
          2,840   0%
org-fold-core--property-symbol-get-create
      7,354,408  11%              -
org-fold-core--property-symbol-get-create
          5,680   0%
org-fold-core--property-symbol-get-create
      4,009,978   6%            - org-capture-mode
      3,858,786   6%               delete-other-windows
        146,922   0%               substitute-command-keys
      1,978,172   3%            - pop-to-buffer
      1,978,172   3%             - display-buffer
      1,978,172   3%              - org-display-buffer-split
      1,978,172   3%               - display-buffer-pop-up-window
      1,961,410   3%                - window--try-to-split-window
      1,961,410   3%                 - split-window-sensibly
      1,961,410   3%                  - split-window-below
      1,961,410   3%                     split-window
            802   0%                  window--display-buffer
         61,501   0%            - org-capture-place-entry
         48,789   0%             - org-paste-subtree
         21,496   0%              - org-element--cache-after-change
         21,496   0%               - org-element--cache-submit-request
         19,448   0%                - org-element--cache-for-removal
         13,304   0%                 - org-element--property
         13,304   0%                  - apply
          9,208   0%                     org-element--headline-parse-title
          8,240   0%              - org-map-region
          6,192   0%               - org-demote
          2,096   0%                - org-element--cache-after-change
             24   0%                 - org-element--cache-submit-request
             24   0%                    org-element--cache-sync
             24   0%                 - run-with-idle-timer
             24   0%                    timer-set-idle-time
          2,048   0%                - org-back-to-heading
          2,048   0%                   org-at-heading-p
          2,048   0%                - org-align-tags
          2,048   0%                   org--align-tags-here
          6,144   0%              - jit-lock-after-change
          6,144   0%
font-lock-extend-jit-lock-region-after-change
          4,096   0%                org-id-paste-tracker
          4,096   0%             - org-capture-verify-tree
          4,096   0%                org-kill-is-subtree-p
          2,048   0%               org-at-heading-p
            960   0%             - org-capture--position-cursor
            960   0%              - org-fold-core--fix-folded-region
            960   0%                 org-fold-core-next-folding-state-change
      2,432,882   3%           - org-capture-fill-template
      1,966,308   3%            - switch-to-buffer-other-window
      1,966,308   3%             - pop-to-buffer
      1,966,308   3%              - display-buffer
      1,962,212   3%               -
display-buffer--maybe-pop-up-frame-or-window
      1,962,212   3%                - display-buffer--maybe-pop-up-window
      1,962,212   3%                 - display-buffer-pop-up-window
      1,961,410   3%                  - window--try-to-split-window
      1,961,410   3%                   - split-window-sensibly
      1,961,410   3%                    - split-window-below
      1,961,410   3%                       split-window
            802   0%                    window--display-buffer
          4,096   0%               - display-buffer--maybe-same-window
          4,096   0%                  same-window-p
        423,984   0%            - org-mode
        233,544   0%             - org-set-regexps-and-options
        188,232   0%              - regexp-opt
        188,232   0%               - regexp-opt-group
        171,864   0%                - regexp-opt-group
        147,312   0%                 - regexp-opt-group
        139,128   0%                  - regexp-opt-group
        139,128   0%                   - regexp-opt-group
        114,576   0%                    - regexp-opt-group
        114,576   0%                     - regexp-opt-group
         90,024   0%                      - regexp-opt-group
         81,840   0%                       - regexp-opt-group
         73,656   0%                        - regexp-opt-group
         65,472   0%                         - regexp-opt-group
         65,472   0%                          - regexp-opt-group
         49,104   0%                           - regexp-opt-group
         24,552   0%                            - regexp-opt-group
         24,552   0%                             - regexp-opt-group
         24,552   0%                                regexp-opt-group
         28,936   0%              - org-collect-keywords
         28,936   0%               - org--collect-keywords-1
         24,552   0%                - org-make-options-regexp
         24,552   0%                 - regexp-opt
         24,552   0%                  - regexp-opt-group
         24,552   0%                   - regexp-opt-group
         16,368   0%                    - regexp-opt-group
         16,368   0%                     - regexp-opt-group
          8,184   0%                      - regexp-opt-group
          8,184   0%                       - regexp-opt-group
          8,184   0%                        - regexp-opt-group
          8,184   0%                         - regexp-opt-group
          8,184   0%                          - regexp-opt-group
          8,184   0%                             regexp-opt-group
          4,096   0%                org-remove-keyword-keys
         42,000   0%             - run-mode-hooks
         42,000   0%              - apply
         42,000   0%               - run-hooks
         27,140   0%                - alpha-org-mode-hook
         27,140   0%                 - highlight-regexp
          4,096   0%                  - hi-lock-mode
          4,096   0%                     hi-lock-find-patterns
          4,096   0%                    isearch-no-upper-case-p
          2,580   0%                - org-tempo-setup
          2,580   0%                 - org-tempo--update-maybe
          2,580   0%                    org-tempo--keys
         32,696   0%             - org-macro-initialize-templates
         32,696   0%              - org-macro--collect-macros
         15,312   0%                 org-macro--find-keyword-value
         12,280   0%               - org-collect-keywords
         12,280   0%                - org--collect-keywords-1
          8,184   0%                 - org-make-options-regexp
          8,184   0%                  - regexp-opt
          8,184   0%                     regexp-opt-group
          5,104   0%               - org-macro--find-date
          5,104   0%                  org-macro--find-keyword-value
         26,560   0%             - org-fold-initialize
         26,560   0%              - org-fold-core-initialize
         26,560   0%               - org-fold-core-add-folding-spec
         26,560   0%
org-fold-core--property-symbol-get-create
         21,120   0%             - org-install-agenda-files-menu
         21,120   0%                org-agenda-files
         17,004   0%             - org-cycle-set-startup-visibility
          2,048   0%              - org-cycle-overview
          2,048   0%                 org-fold-hide-drawer-all
          2,048   0%                org-cycle-hide-archived-subtrees
          2,048   0%                org-cycle-show-empty-lines
            756   0%              -
org-cycle-set-visibility-according-to-property
            756   0%                 org-re-property
         13,248   0%            - org-capture-expand-embedded-elisp
         11,200   0%             - put-text-property
          6,144   0%              - jit-lock-after-change
          6,144   0%
font-lock-extend-jit-lock-region-after-change
          2,048   0%
org-capture--expand-keyword-in-embedded-elisp
          6,144   0%            - jit-lock-after-change
          6,144   0%
font-lock-extend-jit-lock-region-after-change
          2,850   0%            - kill-buffer
            802   0%             - replace-buffer-in-windows
            802   0%                switch-to-prev-buffer
          2,048   0%              org-clone-local-variables
          1,856   0%            - org-get-x-clipboard
          1,856   0%             - gui-get-selection
          1,856   0%              - gui-backend-get-selection
          1,856   0%               - apply
          1,856   0%                  #<compiled -0x8b19310558fbded>
            802   0%              #<compiled 0x17210cf57ef2c6>
          2,048   0%           - org-capture-set-target-location
          2,048   0%            - org-capture-target-buffer
          2,048   0%               org-capture-expand-file
     29,842,428  47%         - org-capture-finalize
     20,756,696  32%          - save-buffer
     20,756,696  32%           - apply
     20,756,696  32%            - ad-Advice-save-buffer
     20,756,696  32%             - #<subr save-buffer>
     20,756,696  32%              - basic-save-buffer
     20,756,696  32%               - basic-save-buffer-1
     20,756,696  32%                - basic-save-buffer-2
        129,016   0%                 - write-region
        129,016   0%                  - select-safe-coding-system
         96,248   0%                   - find-auto-coding
         57,344   0%                    - set-auto-mode-1
          2,048   0%                       inhibit-local-variables-p
          6,144   0%                   - find-coding-systems-region
          6,144   0%                    - sort-coding-systems
          6,144   0%                     - #<compiled 0x1f2d262f51e03e71>
          6,144   0%                        #<compiled 0x1b16b6cb164a1a03>
      5,128,738   8%          - kill-buffer
      5,122,594   8%           - replace-buffer-in-windows
      5,122,594   8%              switch-to-prev-buffer
          4,096   0%             tramp-flush-file-function
         24,576   0%          - org-update-parent-todo-statistics
         12,288   0%           - org-up-heading-safe
         12,288   0%            - org-element-at-point
         12,288   0%             - org-element--parse-to
          6,144   0%                #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38>
          1,024   0%                org-element-org-data-parser
          8,192   0%           - org-entry-get
          8,192   0%            - org-entry-get-with-inheritance
          8,192   0%             - org-element-lineage-map
          8,192   0%              - #<compiled 0x9d8a0445d08076d>
          8,192   0%               - org--property-local-values
          8,192   0%                - org-element--property
          8,192   0%                 - org-element--property
          8,192   0%                  - apply
          3,072   0%                   -
org-element--get-global-node-properties
          2,048   0%                    - org-element--get-category
          1,024   0%                       file-name-sans-extension
          2,048   0%                     org-element--headline-deferred
          4,256   0%          - org-capture-store-last-position
          4,256   0%           - bookmark-set
          4,256   0%            - bookmark-set-internal
          4,096   0%             - bookmark-make-record
          4,096   0%              - bookmark-make-record-default
          4,096   0%                 bookmark-buffer-file-name
            160   0%               bookmark-store
          2,048   0%          - org-back-to-heading
          2,048   0%             org-at-heading-p
          2,048   0%            org-update-checkbox-count
      2,185,491   3%         - ido-hacks-execute-extended-command
      1,273,980   2%          - completing-read
      1,273,980   2%           - apply
      1,273,980   2%            - ad-Advice-completing-read
      1,273,980   2%             - ido-read-internal
      1,273,980   2%              - apply
      1,273,980   2%               - ad-Advice-ido-read-internal
      1,272,535   2%                - #<subr ido-read-internal>
      1,257,459   1%                 - read-from-minibuffer
        171,850   0%                  - ido-exhibit
        171,850   0%                   - apply
        171,850   0%                    - #<subr ido-exhibit>
        136,528   0%                     - ido-set-common-completion
         94,128   0%                        ido-find-common-substring
         16,914   0%                       ido-completions
         10,224   0%                     - ido-set-matches
         10,224   0%                      - ido-set-matches-1
         10,224   0%                       - apply
         10,224   0%                        - ido-clever-match
          7,152   0%                           ido-clever-match--match
          3,072   0%                         - apply
          3,072   0%                          - #<compiled
0x154daee8fd3cd44>
          3,072   0%                           - apply
          3,072   0%                            -
ad-Advice-ido-set-matches-1
          3,072   0%                             - #<subr ido-set-matches-1>
          3,072   0%                              - mapc
          3,072   0%                                 #<compiled
-0x106af6854f37e99a>
          3,904   0%                  - redisplay_internal (C function)
          3,904   0%                   - window--adjust-process-windows
          3,904   0%                    -
window-adjust-process-window-size-smallest
          3,102   0%                     - window-adjust-process-window-size
          1,498   0%                      - window-max-chars-per-line
            802   0%                         #<compiled -0x18bc5fa69c28a465>
            802   0%                        #<compiled -0x18bc5fa69c28a465>
          2,320   0%                  - timer-event-handler
          2,320   0%                   - apply
          2,320   0%                      mouse-avoidance-banish
            544   0%                  - type-break-run-tb-post-command-hook
            544   0%                     type-break-check
            208   0%                  - command-execute
            208   0%                   - call-interactively
            208   0%                    - apply
            208   0%                     - call-interactively@ido-cr
+-record-current-command
            208   0%                      - let
            208   0%                       - apply
            208   0%                          #<subr call-interactively>
             48   0%                  - undo-auto--undoable-change
             48   0%                   - undo-auto--boundary-ensure-timer
             48   0%                    - run-at-time
             24   0%                       timer-set-time
             24   0%                     - timer-activate
             24   0%                        timer--activate
          6,144   0%                 - ido-set-matches
          6,144   0%                  - ido-set-matches-1
          6,144   0%                   - apply
          6,144   0%                    - ido-clever-match
          6,144   0%                     - apply
          6,144   0%                      - #<compiled 0x154daee8fd3cd44>
          6,144   0%                       - apply
          6,144   0%                        - ad-Advice-ido-set-matches-1
          6,144   0%                         - #<subr ido-set-matches-1>
          3,072   0%                          - mapc
          3,072   0%                             #<compiled
-0x106af6854f37e99a>
          1,024   0%                            ido-final-slash
        838,071   1%          - call-interactively
        838,071   1%           - apply
        838,071   1%            - call-interactively@ido-cr
+-record-current-command
        838,071   1%             - let
        838,071   1%              - apply
        838,071   1%               - #<subr call-interactively>
        838,055   1%                  funcall-interactively
         88,128   0%         - org-self-insert-command
         88,128   0%          - apply
         88,128   0%           - #<subr org-self-insert-command>
         18,432   0%            - jit-lock-after-change
         18,432   0%
font-lock-extend-jit-lock-region-after-change
         14,328   0%              org-at-table-p
         14,328   0%              org-fix-tags-on-the-fly
         12,312   0%            - org-element--cache-after-change
         12,288   0%             - org-element--cache-submit-request
          6,144   0%                org-element--cache-for-removal
             24   0%             - run-with-idle-timer
             24   0%                timer-set-idle-time
          9,600   0%            - org-fold-core--fix-folded-region
          9,600   0%               org-fold-core-next-folding-state-change
             48   0%            - undo-auto--undoable-change
             48   0%             - undo-auto--boundary-ensure-timer
             48   0%              - run-at-time
             24   0%                 timer-set-time
             24   0%               - timer-activate
             24   0%                  timer--activate
            294   0%           set-mark-command
        477,443   0% + redisplay_internal (C function)
          4,656   0% + timer-event-handler
            680   0% + type-break-run-tb-post-command-hook
            464   0% + gui-set-selection
             21   0% + #<compiled -0x877c4b557954f99>
              0   0%   ...
******* results for org-show-context
********* org-show-context
3,334,511  86% - command-execute
      3,334,511  86%  - call-interactively
      3,334,511  86%   - apply
      3,334,511  86%    - call-interactively@ido-cr+-record-current-command
      3,334,511  86%     - let
      3,334,511  86%      - apply
      3,334,511  86%       - #<subr call-interactively>
      3,334,511  86%        - funcall-interactively
      1,982,608  51%         - alpha-org-up
      1,971,432  51%          - org-show-context
      1,971,432  51%           - org-fold-show-set-visibility
      1,954,784  50%            - org-fold-show-children
      1,953,760  50%             - org-fold-heading
      1,953,760  50%              - org-fold-region
      1,953,760  50%               - org-fold-core-get-regions
      1,953,760  50%
org-fold-core-next-folding-state-change
          5,280   0%            - org-fold-show-entry
          5,280   0%             - org-fold-region
          5,280   0%              - org-fold-core-get-regions
          5,280   0%                 org-fold-core-next-folding-state-change
          2,400   0%            - org-fold-heading
          2,400   0%             - org-fold-region
          2,400   0%              - org-fold-core-get-regions
          2,400   0%                 org-fold-core-next-folding-state-change
         11,008   0%          - org-in-item-p
          5,120   0%           - org-list-context
          1,024   0%            - org-back-to-heading
          1,024   0%               org-at-heading-p
          1,152   0%             org-in-regexp
      1,205,971  31%         - ido-hacks-execute-extended-command
        838,071  21%          - call-interactively
        838,071  21%           - apply
        838,071  21%            - call-interactively@ido-cr
+-record-current-command
        838,071  21%             - let
        838,071  21%              - apply
        838,071  21%               - #<subr call-interactively>
        838,055  21%                  funcall-interactively
        248,372   6%          - completing-read
        248,372   6%           - apply
        248,372   6%            - ad-Advice-completing-read
        248,372   6%             - ido-read-internal
        248,372   6%              - apply
        248,372   6%               - ad-Advice-ido-read-internal
        246,927   6%                - #<subr ido-read-internal>
        230,867   5%                 - read-from-minibuffer
        171,850   4%                  - ido-exhibit
        171,850   4%                   - apply
        171,850   4%                    - #<subr ido-exhibit>
        152,896   3%                     - ido-set-common-completion
        110,496   2%                        ido-find-common-substring
         10,224   0%                     - ido-set-matches
         10,224   0%                      - ido-set-matches-1
         10,224   0%                       - apply
         10,224   0%                        - ido-clever-match
          7,152   0%                           ido-clever-match--match
          3,072   0%                         - apply
          3,072   0%                          - #<compiled
0x154daee8fd3cd44>
          3,072   0%                           - apply
          3,072   0%                            -
ad-Advice-ido-set-matches-1
          3,072   0%                             - #<subr ido-set-matches-1>
          3,072   0%                              - mapc
          3,072   0%                                 #<compiled
-0x106af6854f37e99a>
          8,730   0%                       ido-completions
          2,320   0%                  - timer-event-handler
          2,320   0%                   - apply
          2,320   0%                      mouse-avoidance-banish
            544   0%                  - type-break-run-tb-post-command-hook
            544   0%                     type-break-check
            208   0%                  - command-execute
            208   0%                   - call-interactively
            208   0%                    - apply
            208   0%                     - call-interactively@ido-cr
+-record-current-command
            208   0%                      - let
            208   0%                       - apply
            208   0%                          #<subr call-interactively>
             96   0%                  - undo-auto--undoable-change
             96   0%                   - undo-auto--boundary-ensure-timer
             96   0%                    - run-at-time
             72   0%                     - timer-activate
             72   0%                        timer--activate
             24   0%                       timer-set-time
          6,144   0%                 - ido-set-matches
          6,144   0%                  - ido-set-matches-1
          6,144   0%                   - apply
          6,144   0%                    - ido-clever-match
          6,144   0%                     - apply
          6,144   0%                      - #<compiled 0x154daee8fd3cd44>
          6,144   0%                       - apply
          6,144   0%                        - ad-Advice-ido-set-matches-1
          6,144   0%                         - #<subr ido-set-matches-1>
          3,072   0%                          - mapc
          3,072   0%                             #<compiled
-0x106af6854f37e99a>
          1,024   0%                            ido-final-slash
        145,932   3%         - next-line
        117,852   3%          - line-move
         44,240   1%           - line-move-partial
         25,188   0%            - window-screen-lines
         25,188   0%               default-line-height
         19,052   0%              default-line-height
         17,004   0%             default-line-height
        524,854  13% + redisplay_internal (C function)
          1,824   0% + timer-event-handler
            640   0% + type-break-run-tb-post-command-hook
              0   0%   ...
********* org-show-context
4745  99% - command-execute
        4745  99%  - call-interactively
        4745  99%   - apply
        4745  99%    - call-interactively@ido-cr+-record-current-command
        4745  99%     - let
        4745  99%      - apply
        4745  99%       - #<subr call-interactively>
        4745  99%        - funcall-interactively
        4489  93%         - alpha-org-up
        4489  93%          - org-show-context
        4489  93%           - org-fold-show-set-visibility
        4413  92%            - org-fold-show-children
        1596  33%             - org-fold-heading
        1484  31%              - org-fold-region
        1408  29%               - org-fold-core-get-regions
        1368  28%                - org-fold-core-next-folding-state-change
          12   0%                 - mapcar
           8   0%                  - #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23>
           4   0%
org-fold-core--property-symbol-get-create
           4   0%                   mapc
          24   0%                  org-fold-core-get-folding-spec
          24   0%               - font-lock-flush
           4   0%                  jit-lock-refontify
           8   0%                 org-fold-core-get-folding-spec-from-alias
          24   0%              - org-back-to-heading
          20   0%                 org-at-heading-p
         230   4%         - ido-hacks-execute-extended-command
         220   4%          - completing-read
         220   4%           - apply
         220   4%            - ad-Advice-completing-read
         164   3%             - ido-read-internal
         164   3%              - apply
         164   3%               - ad-Advice-ido-read-internal
         164   3%                - #<subr ido-read-internal>
         136   2%                 - read-from-minibuffer
          74   1%                  - ido-exhibit
          74   1%                   - apply
          74   1%                    - #<subr ido-exhibit>
          36   0%                     - ido-set-common-completion
          36   0%                        ido-find-common-substring
          34   0%                     - ido-set-matches
          34   0%                      - ido-set-matches-1
          34   0%                       - apply
          34   0%                        - ido-clever-match
          26   0%                         - ido-clever-match--match
          26   0%                            ido-clever-match--score
           8   0%                         - apply
           8   0%                          - #<compiled 0x154daee8fd3cd44>
           8   0%                           - apply
           8   0%                            - ad-Advice-ido-set-matches-1
           8   0%                             - #<subr ido-set-matches-1>
           8   0%                              - mapc
           8   0%                                 #<compiled
-0x106af6854f37e99a>
          27   0%                  - timer-event-handler
          27   0%                   - apply
          23   0%                      mouse-avoidance-banish
           4   0%                      #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_12>
          16   0%                 - ido-set-matches
          16   0%                  - ido-set-matches-1
          16   0%                   - apply
          16   0%                    - ido-clever-match
          16   0%                     - apply
          16   0%                      - #<compiled 0x154daee8fd3cd44>
          16   0%                       - apply
          16   0%                        - ad-Advice-ido-set-matches-1
          16   0%                         - #<subr ido-set-matches-1>
          16   0%                          - mapc
          16   0%                             #<compiled
-0x106af6854f37e99a>
          56   1%             - ido-hacks-make-completions
          36   0%              - ido-hacks-completions-sort
          32   0%                 sort
           9   0%          - call-interactively
           9   0%           - apply
           9   0%            - call-interactively@ido-cr
+-record-current-command
           9   0%             - let
           9   0%              - apply
           9   0%               - #<subr call-interactively>
           9   0%                  funcall-interactively
          26   0%         - next-line
          16   0%          - line-move
          12   0%             default-line-height
          17   0% + timer-event-handler
          13   0% + redisplay_internal (C function)
           5   0% + type-break-run-tb-post-command-hook
           0   0% + ...
******* FACT colophon
i am running org 9.7.6.  i recently upgraded to emacs 28
from 27.  simultaneously bookworm from bullseye.  was
running 9.7.6 without major issues before bookworm.

emacs -q with default org without my .org files is
relatively ok.  no changes to my .emacs that seem relevant,
none to capture.  i did disable some capture hooks i had in
hopes of fixing hte issue, but they did not.

when i am running a normal large rsync that i always ran
under bullseye, all keystrokes in emacs can take seconds.  i
believe vlc can be slower too.



-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com

[-- Attachment #2: Type: text/html, Size: 60503 bytes --]

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

* Re: in 28, massive slowness in capture, folding, and org-show-context
  2024-07-11 21:50 in 28, massive slowness in capture, folding, and org-show-context Samuel Wales
@ 2024-07-12 11:06 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-07-12 11:06 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> 18018  99% - command-execute
> ...
>        17488  96%          - org-capture
>        17434  96%           - org-capture-place-template
>        17398  96%            - org-fold-show-all
>        17370  96%             - org-fold-region
>        11415  63%              - org-fold-core-get-regions
>        11371  62%               - org-fold-core-next-folding-state-change
> ******* FACT colophon
> i am running org 9.7.6.  i recently upgraded to emacs 28
> from 27.  simultaneously bookworm from bullseye.  was
> running 9.7.6 without major issues before bookworm.
>
> emacs -q with default org without my .org files is
> relatively ok.  no changes to my .emacs that seem relevant,
> none to capture.  i did disable some capture hooks i had in
> hopes of fixing hte issue, but they did not.
>
> when i am running a normal large rsync that i always ran
> under bullseye, all keystrokes in emacs can take seconds.  i
> believe vlc can be slower too.

Looks like you have too many text properties in buffers, which makes
redisplay slow.

Try setting `org-fold-core--optimise-for-huge-buffers' to '(grab-invisible)
If that does not help, try settqing `org-fold-core-style' to 'overlays.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2024-07-12 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 21:50 in 28, massive slowness in capture, folding, and org-show-context Samuel Wales
2024-07-12 11:06 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.