emacs-devel
[Top][All Lists]
Advanced

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

Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%


From: Stefan Monnier
Subject: Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%
Date: Sat, 11 Sep 2021 13:04:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> and it will probably say nil.
> That's sheer luck: it happens only when the invisible text between
> headings is longer than jit-lock-chunk-size.

That was exactly the case I was talking about.
That's why I wrote a few messages ago:

    Maybe a good way to see the waste is to measure the time for the
    initial font-lock in an outline-mode buffer where the screen is
    filled with single-line headers and everything else is hidden:
    a whole chunk will be fontified for each line, so with a single
    40-line screen you can expect to fontify 40 chunks (unless the
    hidden text between lines is smaller than the chunk size, of
    course).


-- Stefan




reply via email to

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