|
From: | Vibhav Pant |
Subject: | Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables. |
Date: | Tue, 7 Feb 2017 20:51:28 +0530 |
>> Hmm... so goto-if-nil is never used any more? Aren't there cases whereDoes that mean you answered "yes" to the first question?
>> byte-switch results in slower code than goto-if-nil?
> Once linear search for gethash when the number of keys are small is
> implemented, byte-switch should still be faster, as all byte-goto-if-nil
> and byte-goto-if-nil-else-pop bytecode is "replaced" with native linear
> search code.
I thought goto-if-nil is also used in other circumstances.
[Prev in Thread] | Current Thread | [Next in Thread] |