Subject: Re: bug#14886: Fwd: A significant slowdown calling font-lock-fontify-buffer from a hook

From: Juanma Barranquero <[email-masked]>
Date: Wed, 17 Jul 2013 13:42:47 +0200

X-Debbugs-Cc: [email-masked]

Anyway, in my original report,

  emacs -Q --eval "(add-hook 'prog-mode-hook
#'font-lock-fontify-buffer)" src/xdisp.c -f kill-emacs

an optimized 24.3 build was slower than a non-opt trunk one (both
compiled with gcc 4.7.2).

However, with your test case, non-opt trunk is 30s slower than non-opt
24.3, and optimized trunk needs less than a third of the time of
non-opt trunk (though glyph assertions are enabled, which could affect
the result)...

A shoot in the dark: Could all this be related to Paul's substitution
of many macros by inline functions?

Paul, WDYT?

    Juanma