emacs-devel
[Top][All Lists]
Advanced

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

Re: A faster derived-mode-p


From: Dmitry Gutov
Subject: Re: A faster derived-mode-p
Date: Mon, 15 Feb 2021 04:34:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 15.02.2021 00:45, Basil L. Contovounesios wrote:
That's not counting the obarray's buckets.  I get ~6x as many results in
my session with (length (all-completions "" obarray #'commandp))

Oh, you're right, thanks. Still, that gives an estimate of how many times the function will be called in an average session.

And

  (benchmark 10000 '(derived-mode-p 'prog-mode))

prints ~0.01s here (unless caught in a GC).



reply via email to

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