[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.4 with arrays patch (work in progress)
- From: Dibyendu Majumdar <mobile@...>
- Date: Sun, 18 Mar 2018 21:08:06 +0000
On 18 March 2018 at 20:49, Petri Häkkinen <petrih3@gmail.com> wrote:
>
> Ok, here’s another try. I started from scratch and only added “truearray” and “sizeused” fields to the Table struct. Operator # uses sizeused field in the case of a true array (a table created with table.newarray()), so that it becomes O(1).
>
> Also, I’m not sure if luaC_barrierback() should be called when updating the array in luaH_newkey()?
>
Believe so. My understanding is that when a key is added, the table if
black must be turned to gray as black objects cannot point to white
objects. luaC_barrierback() does that.
Regards
Dibyendu
- 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
- Re: 5.4 with arrays patch (work in progress), Roberto Ierusalimschy
- Re: 5.4 with arrays patch (work in progress), Petri Häkkinen
- Re: 5.4 with arrays patch (work in progress), Petri Häkkinen