GNU bug report logs -
#57245
29.0.50; M-> in a large XML file (without long lines) is slow
Previous Next
Full log
View this message in rfc822 format
On 16.08.2022 23:22, Stefan Monnier via Bug reports for GNU Emacs, the
Swiss army knife of text editors wrote:
> Dmitry Gutov [2022-08-16 22:32:23] wrote:
>> On 16.08.2022 19:54, Eli Zaretskii wrote:
>>> Stefan, can you see why syntax-related stuff in sgml-mode is so heavy
>>> here?
>> nxml-syntax-propertize might well be heavier than average, but the delay
>> scales linearly with the size of the file.
> Indeed, it should be linear.
>
>> Which seems to be exactly the behavior the "font-lock narrowing" was
>> supposed to guard from?
> Not sure which narrowing you're referring to.
> The "locked narrowing" introduced by Gregory is only installed in the
> presence of long lines. It's (currently) not used for large files
> (unless they contain long lines, that is).
I guess that's the problem here.
The font-lock narrowing (if it's indeed the method we're going to use to
speed up its performance) shouldn't be conditioned on the presence of
long lines.
This bug report was last modified 2 years and 303 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.