[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.4 with arrays patch (work in progress)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 18 Mar 2018 12:46:51 -0300
> Well, I took a stab at it myself for some Sunday fun. It’s still very much work in progress, but the initial results seem promising.
>
> Here are some benchmarking results for a large number of table reads/writes vs. array reads/writes.
>
> [...]
Among other problems, your implementation slows down table access,
because every access first has to check whether the value is an array. A
fairer comparison would be of your implementation with tables against
tables in an unmodified Lua source. (Another caveat is that you are
testing accesses to constant indices, which is not the usual way arrays
are used.)
-- Roberto
- References:
- [ANN] Lua 5.4.0 (work1) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.4.0 (work1) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.4.0 (work1) now available, Xavier Wang
- Re: [ANN] Lua 5.4.0 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 (work1) now available, Andrew Starks
- Re: [ANN] Lua 5.4.0 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 (work1) now available, Dibyendu Majumdar
- Re: [ANN] Lua 5.4.0 (work1) now available, Sean Conner
- Re: [ANN] Lua 5.4.0 (work1) now available, Petri Häkkinen
- 5.4 with arrays patch (work in progress), Petri Häkkinen