emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcel van der Boom <marcel@hsdev.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Commit  bb2848 causes performance problems
Date: Mon, 6 Feb 2012 18:09:30 +0100	[thread overview]
Message-ID: <20120206180930.35bef260@hsdev.com> (raw)

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

commit bb28480169558a183fab2330476a49b4fb1aec46 causes major
performance problems in my install.

GNU Emacs 24.0.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6)

The relevant change:

diff --git a/lisp/org.el b/lisp/org.el
index 587d298..f670787 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6301,6 +6301,8 @@ in special contexts.
          (org-list-set-item-visibility (point-at-bol) struct 'children)
        (org-show-entry)
        (show-children)
+       (when (memq 'org-cycle-hide-drawers org-cycle-hook)
+         (org-cycle-hide-drawers 'subtree))
        ;; Fold every list in subtree to top-level items.
        (when (eq org-cycle-include-plain-lists 'integrate)
          (save-excursion

I isolated this commit by using 'git bisect'. 

The problem is very noticeable on a reasonably large org file (about
15000 lines). The behaviour I am seeing is a delay in cursor movement
(and cpu load increasing for the emacs process) when the point is on
the higher outline levels. The delay is less when moving the point
further down the tree, presumably because the subtree below that
particular point gets smaller.

By commenting out the two lines marked in the diff, the delay
disappears completely.

Do I have a configaration error, or is this a bug?

marcel

-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV    -- http://www.hsdev.com
We use bitcoin!      -- http://bitcoin.org

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5618 bytes --]

             reply	other threads:[~2012-02-06 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 17:09 Marcel van der Boom [this message]
2012-03-22  0:43 ` Commit bb2848 causes performance problems Bastien

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=20120206180930.35bef260@hsdev.com \
    --to=marcel@hsdev.com \
    --cc=emacs-orgmode@gnu.org \
    /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).