emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables


From: Stefan Monnier
Subject: Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables.
Date: Mon, 06 Feb 2017 13:30:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> The following patch adds support for a new op `switch` to the Emacs
> bytecode VM and compiler.

I guess the motivation is to speed up some code.
Did you make any measurements to see what kind of effect it has?

> However, since switch replaces all goto-if-nil code, I've used a few

Hmm... so goto-if-nil is never used any more?  Aren't there cases where
byte-switch results in slower code than goto-if-nil?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]