emacs-devel
[Top][All Lists]
Advanced

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

Re: Caching where-is-internal


From: Daniel Mendler
Subject: Re: Caching where-is-internal
Date: Mon, 24 May 2021 22:07:02 +0200

On 5/24/21 9:53 PM, Stefan Monnier wrote:
>> The funny thing here is that the initial (costly?) computation of the
>> `marginalia--annotate-binding-hash` does not lead to a noticeable slowdown.
> 
> The first call to `where-is-internal` will traverse all the keymaps and
> build the hash-table (which doesn't cost much more than just a plain
> uncached `where-is-internal`), and the subsequent ones will hit the
> hash-table instead.

This makes sense. Thanks. Then we have to figure out why this spurious
cache flush happens. At the time when I wrote this code I should have
reported the issue right away or investigated a bit more deeply. It is
good to revisit this now in the light of the current discussion.

Daniel



reply via email to

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