From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Re: org-src-fontify-natively makes things very, very slow
Date: Mon, 21 Mar 2011 17:06:24 +0000 [thread overview]
Message-ID: <87lj089ze7.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: 87tyewk1im.fsf@gmail.com
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é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
(well, commenting out the whole condition that includes this code) makes
no difference at all.
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.
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
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.91.g38c6b)
next prev parent reply other threads:[~2011-03-21 17:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-17 13:59 org-src-fontify-natively makes things very, very slow Julian Burgos
2011-03-17 18:28 ` Eric S Fraga
2011-03-17 20:34 ` Sébastien Vauban
2011-03-18 0:11 ` Julian Burgos
2011-03-18 8:38 ` Eric S Fraga
2011-03-18 12:44 ` Julian Burgos
2011-03-19 9:20 ` Sébastien Vauban
2011-03-19 12:28 ` suvayu ali
2011-03-19 20:37 ` Eric S Fraga
2011-03-19 20:34 ` Eric S Fraga
2011-03-20 4:23 ` Le Wang
2011-03-20 19:41 ` Eric S Fraga
2011-03-21 2:37 ` Le Wang
2011-03-21 13:57 ` Eric Schulte
2011-03-21 17:06 ` Eric S Fraga [this message]
2011-03-21 22:23 ` Sébastien Vauban
2011-03-22 9:18 ` Ulf Stegemann
2011-03-29 14:49 ` Matt Lundin
2011-03-29 16:49 ` Eric S Fraga
2011-03-30 7:34 ` Sébastien Vauban
2011-04-28 20:59 ` Carsten Dominik
2011-04-28 23:32 ` Eric S Fraga
2011-04-30 19:45 ` Eric S Fraga
2011-05-01 13:37 ` Carsten Dominik
2011-03-29 14:12 ` Matt Lundin
2011-03-29 16:44 ` Eric S Fraga
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=87lj089ze7.fsf@pinto.chemeng.ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--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).