]> code.delx.au - gnu-emacs/commit
CHECK_IMPURE and PURE_P speedup
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Oct 2015 07:17:11 +0000 (00:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Oct 2015 07:18:39 +0000 (00:18 -0700)
commitbb7c182fdaf8553ffdc9162f322177ae2f7fa0c2
tree444b1eef3d424cb5b07396a11bc66fe401d0a1dd
parent1196e3fca6f9df107c76438b7d00090d19b13570
CHECK_IMPURE and PURE_P speedup

* src/intervals.c (create_root_interval):
Do CHECK_IMPURE only for strings; not needed for buffers.
Prefer ! STRINGP to BUFFERP, for a tad more speed.
* src/puresize.h (CHECK_IMPURE, PURE_P):
Now inline functions instead of macros.
(PURE_P): Don’t use XPNTR; that is now the caller’s responsibility.
All callers changed.
(CHECK_IMPURE): New argument PTR, to save us the work of running XPNTR.
All callers changed.
src/data.c
src/intervals.c
src/keymap.c
src/puresize.h