]> git.eshelyaron.com Git - emacs.git/commit
Simplify and tune XSYMBOL
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jan 2024 00:52:31 +0000 (16:52 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:31:23 +0000 (08:31 +0100)
commita1a807e44d4d8e1b9a8610e076d3751fda3bbe63
tree01ec5c5bde35df077a2a9cf9dee1e8f47a402d95
parent282a735ec9b7406e7101dd9c6bf6e7508fdf5fd1
Simplify and tune XSYMBOL

* src/lisp.h (XSYMBOL): Simplify and tune.  There is no need to
examine symbols_with_pos_enabled here, since the arg must be a symbol
so if it's not a bare symbol then it must be a symbol_with_pos;
and checking whether a symbol is bare is cheap.

With Ubuntu 23.10 on a Xeon W-1350, this shrank Emacs’s executable
text size by 0.1% and sped up a default build of all *.elc files by
0.4%.

Remove unnecessary eassert, since XBARE_SYMBOL and XSYMBOL_WITH_POS
have easserts that suffice.

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