unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: where-is-internal question
Date: Thu, 08 Sep 2005 12:14:38 +0200	[thread overview]
Message-ID: <m3vf1byigh.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1EDCM4-00040z-Ev@fencepost.gnu.org> (Richard M. Stallman's message of "Wed, 07 Sep 2005 22:41:36 -0400")

"Richard M. Stallman" <rms@gnu.org> writes:

>     IIRC, the problem probably is that with command remapping,
>     where-is-internal in 22.x has to lookup the key binding for each
>     command to see if it remapped -- in the normal case (where a command
>     only has a few bindings), the penalty is neglible, but for
>     self-insert-command specifically, that will be time consuming.
>
> Could you show me where the code is that does this?
> Maybe I can speed it up with some sort of memoization.

I really don't think this is necessary.

IMO lisp code should never use it like Drew's code did; with 22.x,
there are much more efficient ways to accomplish what he was doing.

Besides, I doubt you can find an efficient way to do memoization
for this case -- without making it even slower.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2005-09-08 10:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07  0:54 where-is-internal question Drew Adams
2005-09-07  3:19 ` Drew Adams
2005-09-07  8:37   ` Kim F. Storm
2005-09-08  2:41     ` Richard M. Stallman
2005-09-08 10:14       ` Kim F. Storm [this message]
2005-09-07  8:28 ` Kim F. Storm
2005-09-07 12:12   ` Stefan Monnier
2005-09-07 13:05     ` Kim F. Storm
2005-09-07 13:52   ` Drew Adams
2005-09-07 15:11     ` Stefan Monnier
2005-09-07 16:03       ` Drew Adams
2005-09-07 20:04     ` Drew Adams
2005-09-07 20:25       ` Stefan Monnier
2005-09-08  1:59         ` Drew Adams
2005-09-08  9:04         ` Richard M. Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3vf1byigh.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=drew.adams@oracle.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).