]> git.eshelyaron.com Git - emacs.git/commit
Speed up builtin_lisp_symbol when not optimizing
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 01:18:23 +0000 (17:18 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jan 2024 16:55:00 +0000 (17:55 +0100)
commit4025b57d6b6f945b6b021ea15fcbbe5a9f1c49f6
tree25577d48a82998493c94ba3e009fdc18b8015243
parent24629302815011d443d786809627f8761a683884
Speed up builtin_lisp_symbol when not optimizing

This should help when building with --enable-checking and
compiling with gcc -O0.  Problem reorted by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2024-01/msg00770.html
* src/lisp.h (lisp_h_builtin_lisp_symbol): New macro,
with a body equivalent in effect to the old ‘builtin_lisp_symbol’
but faster when not optimizing.
(builtin_lisp_symbol): Use it.
If DEFINE_KEY_OPS_AS_MACROS, also define as macro.

(cherry picked from commit df7c6211cb960b88bc0aaef85babf7e9384d5f2e)
src/lisp.h