[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Issues with the current varargs implementation (Was: Re: inadequate documentation for select and table.unpack)
- From: KHMan <keinhong@...>
- Date: Wed, 22 Jun 2016 21:16:38 +0800
On 6/22/2016 8:39 PM, Dirk Laurie wrote:
2016-06-22 12:21 GMT+02:00 steve donovan:
On Tue, Jun 21, 2016 at 10:47 PM, Philipp Janda:
First of all: vararg performance is fine. .... Performance of `select` is fine too.
Calling it means pushing all of its arguments to the Lua stack -- like for any
I also wonder whether we're going to squeeze much more performance out
of this lemon, and whether this is in fact an important lemon.
It is unimportant in the sense that whether traversing the vararg
using select is O(n) or O(n²) seldom matters in practice.
It is important in the sense that it is highly instructive to ponder
the issues involved.
Hmmm... anyone got an artificial benchmark to test and compare
timings? I don't believe I've seen any timing data so far...
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia