GNU bug report logs -
#58518
29.0.50; [PATCH] Turning off compilation-minor-mode removes fontification of other modes
Previous Next
Reported by: miha <at> kamnitnik.top
Date: Fri, 14 Oct 2022 15:16:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Full log
View this message in rfc822 format
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> I can't remember anyone measuring the performance impact, but it does
> come at a cost since every time we call `lookup_char_property` it takes
> significantly more work.
>
> This is called at every text-property (or overlay) boundary in things
> like `next-single-property-change` and similar operations used by the
> redisplay.
>
> The "more work" is the `assq` itself whose time is proportional to the
> length of this alist, plus a `plist-get` per alias listed, whenever
> the `assq` finds a match (i.e. whenever we're looking for a property
> which has aliases).
But this would be for the *compilation* buffer only, so perhaps that's
fine...
> FWIW, in the past I suggested maybe we should introduce a notion of
> "property planes". So `compilation` could use one property plane,
> `font-lock` could use another and they could just blindly remove all the
> properties in their plane without affecting others.
Yes, it's implementing planes, only manually. Having real planes would
be great.
> BTW, another option is to use overlays rather than
> text-properties :-)
I'd rather not -- things are confusing enough in this area already.
This bug report was last modified 2 years and 243 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.