[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Performance problem with 0-based arrays
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 23 Nov 2020 13:11:35 -0300
> for j = base_index + game_size, base_index + 2*game_size - 1 do
> game_field[j] = nil
> end
Anyone that spends time initializing an array with nil's is not
really concerned with performance. If you remove that pointless
loop from the program, the difference disapears.
(This issue is really a simple variation of what was discussed in this
list a short time ago.)
-- Roberto