[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT2 performance for number crunching
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 16 Feb 2011 16:02:38 -0200
> > When steve donovan proposed a "const" keyword earlier today, I wondered if
> > LuaJIT was able to spot that a local is only assigned to once so it could
> > automatically treat it as const.
>
> It would be more in the spirit of Lua (that abused term) if the
> constness of a value could be deduced from its usage like this.
In the lua.org VM locals and constants are equally fast, being lookups
into an array. (I'm ignoring locality of access issues.)
- References:
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Leo Razoumov
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Leo Razoumov
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, T T
- Re: LuaJIT2 performance for number crunching, Daurnimator
- Re: LuaJIT2 performance for number crunching, Mike Pall
- Re: LuaJIT2 performance for number crunching, Tony Finch
- Re: LuaJIT2 performance for number crunching, steve donovan