bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63622: lisp/progmodes/python.el: performance regression introduced b


From: Ruijie Yu
Subject: bug#63622: lisp/progmodes/python.el: performance regression introduced by multiline font-lock
Date: Wed, 24 May 2023 07:41:52 +0800

On May 23, 2023, at 23:46, kobarity <kobarity@gmail.com> wrote:
> 
> The performance problem in the example shown by Tom can be resolved by
> modifying the above code as follows:
> 
>          (re (concat "[uU]?[rR]?"
>                      (rx (or "\"\"\"" "\"" "'''" "'")))))

I didn’t read the context for this snippet, but isn’t it sufficient to match 
for only one single-quote and double-quote, instead of also matching for the 
triple (multiline) counterparts? 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]