]> git.eshelyaron.com Git - emacs.git/commit
Count bytes, not records, in specpdl_ref
authorMattias Engdegård <mattiase@acm.org>
Wed, 2 Feb 2022 16:42:07 +0000 (17:42 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 12 Feb 2022 17:21:34 +0000 (18:21 +0100)
commit09fecae87747291afcc9f59c985e3d804de961c3
tree388ce9416cd8b92f1b3e899a8a4c67d5a9802053
parent297520852f4f0e11a34a8a867c13fdf03d83eafd
Count bytes, not records, in specpdl_ref

SPECPDL_INDEX becomes much faster because the pointer subtraction,
expensive because of the inconveniently sized specpdl records, is now
gone.  This translates to a useful speedup on a wide variety of code.

* src/lisp.h (specpdl_ref, wrap_specpdl_ref, unwrap_specpdl_ref):
Rename member.
(specpdl_count_to_ref, specpdl_ref_to_count)
(specpdl_ref_add, specpdl_ref_to_ptr, SPECPDL_INDEX):
Count offset in bytes rather than in records.
src/lisp.h