opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 3 July 2012 • 9:19PM -0400

Re: Inefficiency in Bgotoifnil byte-code instruction
by Stefan Monnier

REPLY TO AUTHOR
 
REPLY TO GROUP




> +#define Bstack_ref1 1
[...]
> +   LABEL (Bstack_ref1),
[...]

Can't we merge those two exhaustive lists (the first is only used in
the non-threaded case and the other only in the threaded case).
If we turn the first set of #defines into an enum, we should be able to
bring the syntax of the two declarations close enough that the
difference can be abstracted out into a few macros.

> FWIW I suspect a bigger win would be had by applying this treatment --
> or even better, a full threaded interpreter -- to the regexp matcher.
> Back when I did some profiling of Emacs, the regexp matcher was higher
> in my profiles than the bytecode interpreter.

There's a lot of room for improvement in the regexp-matcher as well,
yes.  If we could generate the code via something like vmgen it would be
even better.


        Stefan


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.