From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Re: Why navigating in Org mode is so slow in overview mode? Date: Mon, 20 Jul 2015 14:32:13 +0200 Message-ID: <20150720123213.GC18553@boo.workgroup> 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> <87r3o317mp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAFb-0001F0-QT for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 08:32:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHAFW-0004a1-LX for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 08:32:55 -0400 Received: from mout.gmx.net ([212.227.15.18]:56340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAFW-0004Zx-AB for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 08:32:50 -0400 Received: from boo.workgroup ([87.185.147.49]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MGSgq-1ZCkO9190K-00DEWi for ; Mon, 20 Jul 2015 14:32:49 +0200 Content-Disposition: inline In-Reply-To: <87r3o317mp.fsf@nicolasgoaziou.fr> 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 Hi Nicolas, thanks for this change it makes a tremendous difference. * Nicolas Goaziou [20. Jul. 2015]: > 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’s 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? Yes, it’s *much* faster now, it’s so responsive it’s almost instantaneous. Thanks. > For the record, `org-context' predates Org Elements and should > ultimately be removed from the code base. Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-