From: Carsten Dominik <carsten.dominik@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-shifmetadown/up are slow
Date: Mon, 22 Jun 2009 07:41:00 +0200 [thread overview]
Message-ID: <FFE67806-5413-46CB-B6C0-CE4E9B1187E0@gmail.com> (raw)
In-Reply-To: <20524da70906212031y2b2521e7o7f465741c4e0da07@mail.gmail.com>
On Jun 22, 2009, at 5:31 AM, Samuel Wales wrote:
> I frequently rearrange headlines with org-shiftmetadown/up. It is
> faster (in the human sense) than kill and yank or refile if the place
> I want to put them is underneath a sibling.
>
> However, it is sometimes slow, taking a second or two per command.
> This occurs when there are large trees around.
>
> Is this something that can be sped up, or is that impossible?
>
> Here is a profile generated with mostly medium-sized trees (I will
> have about thrice that size in some cases) in case it helps.
>
> I did elp-insrument package org then a bunch of the relevant
> operations then elp-results. Please tell me if there are better ways
> to profile.
Hi Sam,
could you please re-run these tests, and instrument for elp not
only org, but also the entire outline package? Seems to me that
much of this time is spent in a non-org function.
On Jun 22, 2009, at 5:35 AM, Samuel Wales wrote:
> I should mention that I often autorepeat them. This also causes jumpy
> behavior due to display algorithms.
What do you mean by "autorepeat" them?
- Carsten
>
> Thanks.
>
>
> Function Name Call
> Count Elapsed Time Average Time
> ============================================================
> ========== ============ ============
> org-move-subtree-down 26
> 14.905667 0.5732948846
> org-compact-display-after-subtree-move 26
> 13.594199000 0.5228538076
> org-shiftmetaup 13
> 8.5230980000 0.6556229230
> org-move-subtree-up 13
> 8.518649 0.6552806923
> org-shiftmetadown 13
> 6.39124 0.4916338461
> org-outline-level 215586
> 2.8513359999 1.322...e-05
> org-cycle 2
> 1.3024040000 0.6512020000
> org-cycle-internal-local 2
> 1.301338 0.650669
> org-cycle-hide-drawers 54
> 1.2955700000 0.0239920370
> org-shiftmetaright 2
> 0.694777 0.3473885
> org-flag-drawer 4154
> 0.5626640000 0.0001354511
> org-up-heading-safe 52
> 0.5439780000 0.0104611153
> org-end-of-subtree 70
> 0.322521 0.0046074428
> org-show-empty-lines-in-parent 26
> 0.2808310000 0.0108011923
> org-map-tree 4
> 0.169852 0.042463
> org-demote-subtree 2
> 0.086123 0.0430615
> org-shiftmetaleft 2
> 0.08543 0.042715
> org-promote-subtree 2
> 0.084803 0.0424015
> org-set-tags 360
> 0.0846619999 0.0002351722
> org-demote 180
> 0.0758529999 0.0004214055
> org-promote 180
> 0.0739650000 0.0004109166
> org-get-tags-string 360
> 0.0243989999 6.7775e-05
> org-move-to-column 360
> 0.021485 5.968...e-05
> org-optimize-window-after-visibility-change 2
> 0.017915 0.0089575
> org-subtree-end-visible-p 1
> 0.017782 0.017782
> org-cycle-hide-archived-subtrees 2
> 0.01267 0.006335
> org-get-string-indentation 2187
> 0.0112600000 5.148...e-06
> org-on-heading-p 390
> 0.0112379999 2.881...e-05
> org-activate-tags 122
> 0.0107860000 8.840...e-05
> org-back-to-heading 543
> 0.0093709999 1.725...e-05
> org-cycle-show-empty-lines 54
> 0.0075979999 0.0001407037
> org-back-over-empty-lines 91
> 0.007464 8.202...e-05
> org-first-sibling-p 26
> 0.0072169999 0.0002775769
> org-do-emphasis-faces 73
> 0.007172 9.824...e-05
> org-activate-footnote-links 71
> 0.0054739999 7.709...e-05
> org-at-table-p 32
> 0.005178 0.0001618125
> org-activate-plain-links 113
> 0.0048619999 4.302...e-05
> org-fontify-meta-lines-and-blocks 71
> 0.0041949999 5.908...e-05
> org-show-entry 27
> 0.004002 0.0001482222
> org-activate-dates 112
> 0.0035139999 3.1375e-05
> org-font-lock-add-tag-faces 71
> 0.003265 4.598...e-05
> org-save-markers-in-region 26
> 0.002781 0.0001069615
> org-activate-bracket-links 83
> 0.0026320000 3.171...e-05
> org-unfontify-region 71
> 0.0020489999 2.885...e-05
> org-hide-archived-subtrees 1
> 0.001765 0.001765
> org-remove-flyspell-overlays-in 161
> 0.0015259999 9.478...e-06
> org-activate-angle-links 71
> 0.0014709999 2.071...e-05
> org-font-lock-add-priority-faces 71
> 0.0014189999 1.998...e-05
> org-clock-save-markers-for-cut-and-paste 26
> 0.001382 5.315...e-05
> org-get-level-face 495
> 0.0012000000 2.424...e-06
> org-before-change-function 504
> 0.0010000000 1.984...e-06
> org-get-valid-level 360
> 0.0008940000 2.483...e-06
> org-activate-code 71
> 0.000885 1.246...e-05
> org-at-heading-p 28
> 0.000745 2.660...e-05
> org-hide-wide-columns 71
> 0.000697 9.816...e-06
> org-get-tag-face 53
> 0.0005709999 1.077...e-05
> org-fix-position-after-promote 4
> 0.000531 0.00013275
> org-hide-block-toggle-maybe 2
> 0.0005189999 0.0002594999
> org-get-todo-face 31
> 0.0003670000 1.183...e-05
> org-invisible-p 27
> 0.00026 9.629...e-06
> org-check-and-save-marker 104
> 0.0002529999 2.432...e-06
> org-font-lock-hook 71
> 0.0001789999 2.521...e-06
> org-do-latex-and-special-faces 71
> 0.0001719999 2.422...e-06
> org-skip-whitespace 26
> 0.0001680000 6.461...e-06
> org-agenda-save-markers-for-cut-and-paste 26
> 0.0001629999 6.269...e-06
> org-activate-target-links 71
> 0.0001359999 1.915...e-06
> org-reinstall-markers-in-region 26
> 9.900...e-05 3.807...e-06
> org-load-modules-maybe 2
> 9e-06 4.5e-06
>
> -- Myalgic encephalomyelitis denialism is causing death and severe
> suffering,
> worse than MS. Conflicts of interest are destroying research. /
> You/ can
> get the disease at any time permanently. Do science and justice
> matter to
> you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-06-22 6:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 3:31 org-shifmetadown/up are slow Samuel Wales
2009-06-22 3:35 ` Samuel Wales
2009-06-22 5:41 ` Carsten Dominik [this message]
2009-06-22 18:43 ` Samuel Wales
2009-07-08 5:07 ` Samuel Wales
2009-08-03 4:29 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FFE67806-5413-46CB-B6C0-CE4E9B1187E0@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).