emacs-devel
[Top][All Lists]
Advanced

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

Re: Temporarily select-window, without updating mode-line face and curso


From: Stefan Monnier
Subject: Re: Temporarily select-window, without updating mode-line face and cursor fill?
Date: Wed, 05 May 2021 15:47:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> However, if I ramp up bench-run-times to 100000 I start seeing GC hits,
> and then nlinum--line-number-at-pos can be up to 10 times slower
> instead...

I think the approach proposed by JD Smith to use modified-ticks rather
than `after-change-functions` to detect changes should make it possible
to have a replacement that doesn't allocate memory at all (except on the
first use in a buffer to create the cache).


        Stefan




reply via email to

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