[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New array type? (was: 'table' as fallback for tables)
- From: "Joseph Manning" <manning@...>
- Date: Thu, 7 Jul 2016 17:15:04 +0100
On 2016-Jul-07 (Thu) at 09:08 (+0200), steve donovan wrote:
>> It would be cool if #t was O(1), however.
Steve,
In theory, yes indeed, this would be nice and neat and clean.
In practice, however, computing #t is blazingly fast. In tests
that I did some time ago ( Lua 5.2 ), with t being a sequence of
10,000 elements, #t was computed 1,000,000 time in just 0.1 seconds.
And that was on my little 2008-era netbook.
Fast enough for me :-)
Joseph
------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------
- References:
- Re: New array type? (was: 'table' as fallback for tables), steve donovan
- Re: New array type? (was: 'table' as fallback for tables), Hisham
- Re: New array type? (was: 'table' as fallback for tables), steve donovan
- Re: New array type? (was: 'table' as fallback for tables), steve donovan
- Re: New array type? (was: 'table' as fallback for tables), Soni L.
- Re: New array type? (was: 'table' as fallback for tables), Tim Hill
- Re: New array type? (was: 'table' as fallback for tables), Soni L.
- Re: New array type? (was: 'table' as fallback for tables), Tim Hill
- Re: New array type? (was: 'table' as fallback for tables), Coda Highland
- Re: New array type? (was: 'table' as fallback for tables), steve donovan