[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua versus Ravi versus Luajit - a simple benchmark
- From: Dibyendu Majumdar <mobile@...>
- Date: Mon, 2 Mar 2015 00:53:47 +0000
On 1 March 2015 at 22:22, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> I do not know yet what changes I could make to improve Ravi's
> performance in this test
Just looking at the logic in FORLOOP makes it clear that there are
some obvious optimizations.
For instance it is known when FORPREP executes whether the loop has
integer or float index, and whether the step is negative or positive.
So then one could branch to more specialized implementation of FORLOOP
from FORPREP and avoid the if/else logic inside FORLOOP.
Right now Ravi's implementation is naive i.e. replicates the logic in lvm.c.
Regards
Dibyendu