lua-users home
lua-l archive

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

On 1 March 2015 at 22:22, Dibyendu Majumdar <> 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.