]> git.eshelyaron.com Git - emacs.git/commit
Improve performance of CONSP, FIXNUMP, etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Aug 2018 20:39:18 +0000 (13:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Aug 2018 21:17:30 +0000 (14:17 -0700)
commitccdb08ef4ed8f96e79aa06cf5e806c9c487d58ad
tree6f8da0d69742307dc7bf8a6c59a7544b389203a0
parent161139a42c02cce051c51fb80c6ae00c9e6beaa6
Improve performance of CONSP, FIXNUMP, etc.

Optimization opportunity noted by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00828.html
On my platform (Fedora 28 x86-64, AMD Phenom II X4 910e,
user+system time), this improved ‘make compile-always’
performance by 0.4% and shrank text size by a similar amount.
* src/lisp.h (TAGGEDP, lisp_h_TAGGEDP): New macros and function.
(lisp_h_CONSP, lisp_h_FLOATP, lisp_h_SYMBOLP)
(lisp_h_VECTORLIKEP, make_lisp_ptr, STRINGP): Use them.
(lisp_h_FIXNUMP): Use the same idea that lisp_h_TAGGEDP uses.
src/lisp.h