]> git.eshelyaron.com Git - emacs.git/commit
Improve byte-switch execution.
authorVibhav Pant <vibhavp@gmail.com>
Thu, 9 Feb 2017 06:48:54 +0000 (12:18 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Thu, 9 Feb 2017 06:48:54 +0000 (12:18 +0530)
commitdde800c8c9ea198996229d03df1fc45c7d057339
tree5101a2f8260e141a64af96e84ca565dd8e49a568
parent96c4e367f973626cbab38af55a2c448b7274eeee
Improve byte-switch execution.

* lisp/emacs-lisp/byte-opt.el,
  lisp/emacs-lisp/bytecomp.el (byte-decompile-bytecode-1),
  (byte-compile-lapcode): Calculate the actual jump address while
  compiling, store it in the jump table.

* src/bytecode.c: Jump to the looked up value directly, do a linear
  search when the number of elements is <= 5.
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/bytecomp.el
src/bytecode.c