emacs-devel
[Top][All Lists]
Advanced

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

Re: Lift {global,local}-key-binding to Lisp


From: Eli Zaretskii
Subject: Re: Lift {global,local}-key-binding to Lisp
Date: Thu, 14 Jan 2021 22:24:23 +0200

> Date: Thu, 14 Jan 2021 22:10:32 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > From: Stefan Kangas <stefan@marxist.se>
> > Date: Thu, 14 Jan 2021 13:24:10 -0600
> > Cc: emacs-devel@gnu.org
> > 
> > AFAIK, the main reason to have things in C is if there is a performance
> > benefit to doing so.
> 
> That's not the only reason

Btw, calling lookup-key from Lisp does add a level of indirection (and
thus slowdown) compared calling Flookup_key from C, because of how the
Lisp interpreter calls primitives.  So even for such simple rewrite in
Lisp there are disadvantages, albeit minor ones.



reply via email to

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