From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Why navigating in Org mode is so slow in overview mode? Date: Mon, 20 Jul 2015 11:49:18 +0200 Message-ID: <87r3o317mp.fsf@nicolasgoaziou.fr> References: <87mvzy93ib.fsf@selenimh.access.network> <20150617121255.GE22432@boo.workgroup> <87y4ji77fs.fsf@selenimh.access.network> <20150620204900.GA10522@boo.workgroup> <87k2ux5sq3.fsf@selenimh.access.network> <20150623104921.GA6709@boo.workgroup> <87si9irxju.fsf@nicolasgoaziou.fr> <20150720083906.GB18553@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH7fp-0007ch-0d for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH7fn-0000mr-UY for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:47:48 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH7fn-0000mm-OP for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:47:47 -0400 Received: from selenimh (unknown [IPv6:2a01:6600:8080:9601::2de]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A0512A8239 for ; Mon, 20 Jul 2015 11:47:46 +0200 (CEST) In-Reply-To: <20150720083906.GB18553@boo.workgroup> (Gregor Zattler's message of "Mon, 20 Jul 2015 10:39:06 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Gregor Zattler writes: > Now I think I found something specific. I do open the org-mode > file in question with #+STARTUP: showeverything because otherwise > it=E2=80=99s slow. Today I discovered org-goto. This presents the > buffer in overview mode. So I started the profiler, started > org-goto and typed 11 letters in order to jump to a heading. > This takes quite some time while my notebooks fan is making noise > and Emacs uses 100% cpu according to htop. > > I did this two times with the same org-mode file: > > - with Org-mode version 8.3beta (release_8.3beta-1291-gd6e601 @ > /home/grfz/src/org-mode/lisp/) on GNU Emacs 25.0.50.4 > (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-07-17 on boo > > - with Org-mode version 8.2.10 (release_8.2.10 @ > /usr/local/stow/emacs-snapshot/share/Emacs/25.0.50/lisp/org/) > on the same version of Emacs. > > I do not know how to read these reports, but to me it seems, that > most of the cpu cycles are used by org-context, org-end-of-item, > org-list-struct and org-list-context. The memory reports do not > seem to be of interest but I attach them for the sake of > completeness. I removed a call to `org-context' in 985420eceb3661aae8b1caafc95e959ab12ad1cb. Does it fix your problem? For the record, `org-context' predates Org Elements and should ultimately be removed from the code base. Regards,