[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25706: 26.0.50; Slow C file fontification
From: |
Alan Mackenzie |
Subject: |
bug#25706: 26.0.50; Slow C file fontification |
Date: |
Tue, 1 Dec 2020 09:29:52 +0000 |
Hello again, Mattias.
On Mon, Nov 30, 2020 at 18:04:56 +0100, Mattias EngdegÄrd wrote:
> > Actually, it's the underscores!
> Found it. Suggested fix attached.
> It can be improved: at least one pair of regexp group brackets can be
> removed, but I didn't dare doing so because I wasn't sure if it would
> throw some group numbers off by one.
> Alan, please, let's work together and remove unnecessary capture groups
> from the regexps! Even XEmacs regexps support non-capturing brackets,
> \(?:...\), and they save time, regexp stack space, and reduce the
> hassle of computing the 'regexp depth' everywhere.
There are 342 occurrences of '\\\\([^?]' in CC Mode. Most of these can
surely be replaced by "\\(?:", but not all, by a long way. This change
will be fun.
--
Alan Mackenzie (Nuremberg, Germany).
- bug#25706: 26.0.50; Slow C file fontification, (continued)
- bug#25706: 26.0.50; Slow C file fontification, Ravine Var, 2020/12/10
- bug#25706: 26.0.50; Slow C file fontification, Alan Mackenzie, 2020/12/10
- bug#25706: 26.0.50; Slow C file fontification, Ravine Var, 2020/12/11
- bug#25706: 26.0.50; Slow C file fontification, Alan Mackenzie, 2020/12/12
- bug#25706: 26.0.50; Slow C file fontification, Ravine Var, 2020/12/14
- bug#25706: 26.0.50; Slow C file fontification, Alan Mackenzie, 2020/12/14
- bug#25706: 26.0.50; Slow C file fontification, Ravine Var, 2020/12/14
- bug#25706: 26.0.50; Slow C file fontification, Alan Mackenzie, 2020/12/15
- bug#25706: 26.0.50; Slow C file fontification, Mattias EngdegÄrd, 2020/12/09
- bug#25706: 26.0.50; Slow C file fontification, Alan Mackenzie, 2020/12/10
bug#25706: 26.0.50; Slow C file fontification,
Alan Mackenzie <=