]> git.eshelyaron.com Git - emacs.git/commit
XSYMBOL eassume speedups
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Feb 2024 17:54:51 +0000 (09:54 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 14 Feb 2024 08:16:21 +0000 (09:16 +0100)
commitb15bb62030403a95de91ee4bbb60b7a8ee8de43a
tree7d779bed48242d95970b601c230b0c98c77d4bf7
parent6a49dabdf66198ebbc297fe0097551f2022e6108
XSYMBOL eassume speedups

* src/lisp.h (XSYMBOL_WITH_POS_SYM, XSYMBOL): Help the compiler by using
eassume instead of eassert for XSYMBOL postconditions likely to be
useful for optimization later.  With gcc 13.2 -O2 x86-64 this improved
speed on my usual “compile all .el files” benchmark by 0.7% and shrank
the text size of Emacs by 0.09%.

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