GNU bug report logs -
#43631
28.0.50; CC Mode multiline strings grinds performance to a halt
Previous Next
Reported by: Theodor Thornhill <theo <at> thornhill.no>
Date: Sat, 26 Sep 2020 11:18:01 UTC
Severity: normal
Found in version 28.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Theodor Thornhill <theo <at> thornhill.no>
> Cc: 43631 <at> debbugs.gnu.org
> Date: Sat, 26 Sep 2020 18:03:10 +0200
>
> > Thanks, but please post the text of Profiler-Report buffer, not the
> > internal structure it produces.
>
> Ok, third time's the charm:
Thanks. This seems to indicate that this loop in
c-pps-to-string-delim is the culprit:
(while (progn
(parse-partial-sexp (point) end nil nil st-s 'syntax-table)
(unless (bobp)
(c-clear-syn-tab (1- (point))))
(setq st-pos (point))
(and (< (point) end)
(not (eq (char-before) ?\")))))
But I'm confused why the "fast" profile starts with
font-lock-fontify-region, whereas the "slow" profile doesn't have
font-lock-fontify-region anywhere...
Hopefully, Alan can take it from here.
This bug report was last modified 1 year and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.