[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Performance problem with 0-based arrays
- From: Mimmo Mane <pocomane_7a@...>
- Date: Tue, 24 Nov 2020 12:42:41 +0100
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
to
game_field[j] = false
too.
But does this mean that it is not just a re-hash issue?