From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: org-src-fontify-natively makes things very, very slow Date: Tue, 22 Mar 2011 10:18:28 +0100 Message-ID: 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> <87lj089ze7.fsf@pinto.chemeng.ucl.ac.uk> <80wrjsun8p.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=60984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1xjp-0004rq-Sf for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 05:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1xji-0003GM-5J for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 05:18:53 -0400 Received: from lo.gmane.org ([80.91.229.12]:40796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1xjh-0003G7-QB for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 05:18:46 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q1xjf-000068-Kx for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:18:43 +0100 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2011 10:18:43 +0100 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2011 10:18:43 +0100 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 Hi Sébastien, Eric, I'm experiencing the same performance problems with recent org-mode. My observations are ... Sébastien Vauban wrote: > Eric S Fraga wrote: >> >> 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ébastien Vauban >> indicated: >> >>> Maybe this is (partly?) due to the overlay I added: >>> >>> #+begin_src emacs-lisp >>> (overlay-put (make-overlay beg1 block-end) >>> 'face 'org-block-background)) >>> #+end_src > > See http://patchwork.newartisans.com/patch/581/ for a full diff. You can see I > only add *one* overlay: for the background face. > >> (well, commenting out the whole condition that includes this code) makes no >> difference at all. That's true. It does not make any difference performance-wise. >> So, I turned off =org-src-fontify-natively= 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. It's true that setting `org-src-fontify-natively' to nil boosts performance but it's only half the story. Editing something inside blocks also has a significant negative influence on display performance. Removing things like `#+BEGIN_letter' / `#+END_letter' from the file gets things back to normal for me. Ulf