GNU bug report logs - #14886
Slowdown on font-lock-fontify-buffer

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Tue, 16 Jul 2013 23:05:02 UTC

Severity: normal

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Juanma Barranquero <lekktu <at> gmail.com>, Paul Eggert <eggert <at> cs.ucla.edu>, 14886 <at> debbugs.gnu.org
Subject: bug#14886: Fwd: bug#14886: Fwd: A significant slowdown calling font-lock-fontify-buffer from a hook
Date: Sun, 28 Jul 2013 09:58:29 +0000
Hello, Martin.

On Sat, Jul 27, 2013 at 12:20:38PM +0200, martin rudalics wrote:
>  > I've tried a brief ediff between the font-lock files in 24.3 and trunk,
>  > but haven't spotted the difference yet in font-lock-fontify-buffer which
>  > I suspect is there.

I am calling:

emacs -Q --eval "(progn (add-hook 'prog-mode-hook #'font-lock-fontify-buffer) (setq debug-on-error t))" ~/emacs/emacs.bzr/trunk/src/xdisp.c

using both emacs 24.3 and the trunk.  In 24.3, the processing is
immediate (~2s), whereas in the trunk it takes ~28s.

> Why should there be any difference?  The value that differs is that of
> `font-lock-fontify-buffer-function'.

In both 24.3 and trunk, `font-lock-fontify-buffer-function' ends up with
the value `jit-lock-refontify'.

> Calling `font-lock-fontify-buffer' from prog-mode does
> `font-lock-default-fontify-buffer'.  Calling it from c-mode does
> `jit-lock-refontify'.  Or what am I missing?

I don't understand what you mean by "from c-mode" and "from prog-mode".
Are you saying that that has somehow changed between 24.3 and the trunk?

> martin

-- 
Alan Mackenzie (Nuremberg, Germany).





This bug report was last modified 5 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.