GNU bug report logs -
#14886
Slowdown on font-lock-fontify-buffer
Previous Next
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
Message #52 received at 14886 <at> debbugs.gnu.org (full text, mbox):
Hi, Juanma.
On Tue, Jul 23, 2013 at 01:16:21PM +0200, Juanma Barranquero wrote:
> Alan, I tried to Cc: you from this bug's thread, but apparently
> failed. Could you take a look at this bug, specially at the use case
> that triggered the bug report,
> emacs -Q --eval "(add-hook 'prog-mode-hook
> #'font-lock-fontify-buffer)" src/xdisp.c -f kill-emacs
When I try this on today's trunk (just updated to rev #113531), I get
28.2s. The same on Emacs 24.3 aborts with some sort of error in ~1.5s
(although there is no error message visible).
When I run font-lock-fontify-buffer in either 24.3 or rev #113531 (after
appropriate setting up with global-font-lock-mode, etc.), it takes about
the same 28 seconds. This is just how long it takes to fontify xdisp.c
without jit-lock.
I don't see the factor 4 slowdown that you did.
> ?
> TIA,
> Juanma
> ---------- Forwarded message ----------
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Tue, Jul 23, 2013 at 12:11 AM
> Subject: Re: bug#14886: Fwd: A significant slowdown calling
> font-lock-fontify-buffer from a hook
> To: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 14886 <at> debbugs.gnu.org
> X-Debbugs-CC: acm <at> muc.de
> > A run of profiler-start seems to indicate most of the time is spent in
> > c-find-decl-spots.
This is not unexpected.
> Alan, could you please take a look at this bug report? The problem
> seems specific to editing C files.
> Thanks,
> Juanma
--
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.