From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, emacs-devel@gnu.org
Subject: Re: A faster derived-mode-p
Date: Mon, 15 Feb 2021 03:47:42 +0100 [thread overview]
Message-ID: <87zh0682sx.fsf@gnus.org> (raw)
In-Reply-To: <81fe6c00-f177-f010-8e80-5a49252546fa@yandex.ru> (Dmitry Gutov's message of "Mon, 15 Feb 2021 04:34:21 +0200")
Dmitry Gutov <dgutov@yandex.ru> writes:
> 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).
Oh, thanks. Then I guess my worries about the speed of that bit, at
least, were premature.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-02-15 2:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-14 20:22 A faster derived-mode-p Lars Ingebrigtsen
2021-02-14 22:25 ` Dmitry Gutov
2021-02-14 22:45 ` Basil L. Contovounesios
2021-02-14 23:03 ` Óscar Fuentes
2021-02-15 2:34 ` Dmitry Gutov
2021-02-15 2:47 ` Lars Ingebrigtsen [this message]
2021-02-14 23:51 ` Stefan Monnier
2021-02-15 2:56 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh0682sx.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=contovob@tcd.ie \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.