lua-users home
lua-l archive

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


... And because the array starts at 1, you are using the hash part of
the table. Try your second example not using position 0.

Also, if possible, try to reuse the "t" table. If the function is
being called millions of times, there are millions of temp tables to
collect

On 10/7/10, Thierry <th.douez@sunnyrevtalk.com> wrote:
>
> Le 7 oct. 2010 à 11:23, David Kastrup a écrit :
>
>> Thierry <th.douez@sunnyrevtalk.com> writes:
>>
>> That is rather awful, you know.
>
> Oups !
>
> No, I didn't know :)
>
>> Lua arrays start indexing at 1.  So the
>> sort routine will not touch the data at index 0.
>
> Thanks for that.
>
> Thierry
>
>
>

-- 
Sent from my mobile device