all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
Subject: Re: A faster derived-mode-p
Date: Sun, 14 Feb 2021 22:45:19 +0000	[thread overview]
Message-ID: <878s7q9slc.fsf@tcd.ie> (raw)
In-Reply-To: <428be4d8-9b35-c581-1357-20bb6ecb1ed8@yandex.ru> (Dmitry Gutov's message of "Mon, 15 Feb 2021 00:25:57 +0200")

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 14.02.2021 22:22, Lars Ingebrigtsen wrote:
>> There are only 11K commands in the Emacs tree, so I don't know whether
>> the current default completion predicate is going to turn out to be
>> problematically slow or not.
>
> I just evaluated
>
>   (length (cl-delete-if-not #'commandp obarray))
>
> in a running Emacs session with a bunch of third-party packages installed and
> loaded, and that still evaluated only to 1083.

That's not counting the obarray's buckets.  I get ~6x as many results in
my session with (length (all-completions "" obarray #'commandp)).

-- 
Basil



  reply	other threads:[~2021-02-14 22:45 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 [this message]
2021-02-14 23:03     ` Óscar Fuentes
2021-02-15  2:34     ` Dmitry Gutov
2021-02-15  2:47       ` Lars Ingebrigtsen
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=878s7q9slc.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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.