From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: org-src-fontify-natively makes things very, very slow Date: Mon, 21 Mar 2011 17:06:24 +0000 Message-ID: <87lj089ze7.fsf@pinto.chemeng.ucl.ac.uk> References: <87ipvhiou8.fsf@ucl.ac.uk> <804o71triy.fsf@somewhere.org> <87bp18su1a.fsf@ucl.ac.uk> <80fwqjqxfj.fsf@somewhere.org> <87oc56q26l.fsf@ucl.ac.uk> <87ipvdo9zs.fsf@ucl.ac.uk> <87tyewk1im.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1iYn-0005B5-Pf for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 13:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1iYm-0004qK-9v for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 13:06:29 -0400 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:51509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1iYm-0004pr-5P for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 13:06:28 -0400 Received: from pinto.chemeng.ucl.ac.uk ([128.40.74.171] helo=localhost) by vscani-d.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1Q1iYh-0006Wc-Ue for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 17:06:23 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello again, going back to the original subject of this thread (although thanks all for your inputs on yasnippet ;-), I have started working on a new document and am finding the slowdown of navigation (next-line) very annoying. In this document, I have two gnuplot source blocks. Navigating through them, I get the following results from elp: --8<---------------cut here---------------start------------->8--- next-line 54 5= .9466770000 0.1101236481 previous-line 44 0= .4350030000 0.0098864318 org-encrypt-entries 1 0= .000424 0.000424 org-scan-tags 1 0= .000368 0.000368 org-make-tags-matcher 1 5= .1e-05 5.1e-05 org-activate-plain-links 1 2= .4e-05 2.4e-05 org-raise-scripts 1 2= .1e-05 2.1e-05 org-fontify-meta-lines-and-blocks 1 1= .9e-05 1.9e-05 org-font-lock-hook 1 1= .9e-05 1.9e-05 org-outline-level 5 1= .9e-05 3.8e-06 org-mode-flyspell-verify 14 1= .8e-05 1.285...e-06 org-inlinetask-fontify 1 1= .5e-05 1.5e-05 org-activate-footnote-links 1 1= .5e-05 1.5e-05 org-unfontify-region 1 1= .2e-05 1.2e-05 org-do-emphasis-faces 1 1= .2e-05 1.2e-05 org-activate-angle-links 1 1= .2e-05 1.2e-05 org-activate-dates 1 1= .1e-05 1.1e-05 org-fontify-entities 1 1= .1e-05 1.1e-05 --8<---------------cut here---------------end--------------->8--- >From these timings, the font locking doesn't seem to be the issue but maybe the overlays are. However, commenting out the code that S=C3=A9basti= en Vauban indicated: > Maybe this is (partly?) due to the overlay I added: >=20 > #+begin_src emacs-lisp > (overlay-put (make-overlay beg1 block-end) > 'face 'org-block-background)) > #+end_src (well, commenting out the whole condition that includes this code) makes no difference at all. So, I turned off =3Dorg-src-fontify-natively=3D and things are back to normal: next-line is as fast as previous-line. I can put up without the fontification so this is what I am doing now.=20=20 However, as it's a pity to lose the native fontification, it would be nice to solve this problem in another way. Can anybody suggest any other thing to try? Thanks, eric --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.91.g38c6b)