lua-users home
lua-l archive

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

On Mon, Nov 23, 2020 at 9:27 PM Luiz Henrique de Figueiredo wrote:
> It seems to me that the issue, if any, is creating new entries in a
> table, not assigning nils. I don't expect any penalty when clearing
> existing fields.

To me instead it seems the issue is exaclty about assigning nil.
Infact the performance strongly change changing
  game_field[j] = nil
  game_field[j] = false

But does this mean that it is not just a re-hash issue?