summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-25 13:39:18 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-25 14:17:30 -0700
commitccdb08ef4ed8f96e79aa06cf5e806c9c487d58ad (patch)
tree6f8da0d69742307dc7bf8a6c59a7544b389203a0 /lisp/emacs-lisp/bytecomp.el
parent161139a42c02cce051c51fb80c6ae00c9e6beaa6 (diff)
downloademacs-ccdb08ef4ed8f96e79aa06cf5e806c9c487d58ad.tar.gz
emacs-ccdb08ef4ed8f96e79aa06cf5e806c9c487d58ad.tar.bz2
emacs-ccdb08ef4ed8f96e79aa06cf5e806c9c487d58ad.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
0 files changed, 0 insertions, 0 deletions