]> git.eshelyaron.com Git - emacs.git/commit
Tune bytecode quitting
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Aug 2016 07:37:39 +0000 (00:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Aug 2016 08:31:21 +0000 (01:31 -0700)
commitd896f78973bce33da7b4629089122bb58103d75c
tree8c9c094265e217ef5ba92f0476d77f81ecd0cd19
parent4d07064a4374a2f74a256e64027ef80f355c7a7e
Tune bytecode quitting

* src/bytecode.c (BYTE_CODE_QUIT): Check for GC, too.  Do the
check only once every 256 times.  This should be good enough, and
improves performance significantly on x86-64 as branch-prediction
typically assumes checking will not be done so the instruction
pipeline stays fuller.
(exec_byte_code): Set up the quit counter.  Don’t call maybe_gc
directly, as BYTE_CODE_QUIT does that now.
src/bytecode.c