GNU bug report logs -
#25682
25.1; font-lock: fontifying too slow in some modes on very long lines
Previous Next
Reported by: Ryan B <public <at> ryanb.org>
Date: Fri, 10 Feb 2017 21:45:02 UTC
Severity: normal
Found in version 25.1
Fixed in version 29.1
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: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 31 Oct 2019 18:07:53 +0100
> Cc: 25682 <at> debbugs.gnu.org
>
> > 1. put the single long line under the === below (18572 chars long) into a file
> > 2. run emacs -Q
> > 3. type C-x C-f <filename> RET to open the file
> > 4. type M-x compilation-mode RET
> >
> > this consistently hangs emacs for 9-10s for me on modern hardware, a 2014
> > retina macbook pro.
>
> The example was corrupted in transit (line-folded), so I've included a
> fixed-up version as an attachment here.
The profile is below.
> Running M-x compilation-mode takes about five seconds for me, but this
> laptop is pretty fast.
Yours is an optimized build, right?
- ... 3375 98%
- compilation--ensure-parse 3362 98%
- save-excursion 3362 98%
- if 3362 98%
- progn 3362 98%
- let 3362 98%
- let* 3362 98%
- unwind-protect 3362 98%
- progn 3362 98%
- compilation--parse-region 3362 98%
- if 3362 98%
- compilation-parse-errors 3362 98%
- let 3362 98%
- while 3362 98%
- let 3362 98%
- let 3362 98%
while 3362 98%
Automatic GC 13 0%
- command-execute 50 1%
- call-interactively 50 1%
- funcall-interactively 48 1%
- execute-extended-command 48 1%
- execute-extended-command--shorter 45 1%
- completion-try-completion 45 1%
- completion--nth-completion 45 1%
- completion--some 45 1%
- #<compiled -0x1ffffffff85d3920> 45 1%
- completion-pcm-try-completion 28 0%
- completion-pcm--find-all-completions 26 0%
completion-pcm--all-completions 26 0%
- completion-pcm--merge-try 2 0%
completion-pcm--merge-completions 1 0%
completion-basic-try-completion 17 0%
- command-execute 1 0%
- call-interactively 1 0%
- funcall-interactively 1 0%
- compilation-mode 1 0%
- run-mode-hooks 1 0%
- hack-local-variables 1 0%
- hack-dir-local-variables 1 0%
- dir-locals-find-file 1 0%
- locate-dominating-file 1 0%
dir-locals--all-files 1 0%
- sit-for 1 0%
redisplay 1 0%
- byte-code 2 0%
- read-extended-command 2 0%
- completing-read 2 0%
- completing-read-default 2 0%
read-from-minibuffer 2 0%
This bug report was last modified 2 years and 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.