[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT2 vs. vararg
- From: Mark Hamburg <mark@...>
- Date: Thu, 26 Nov 2009 11:10:17 -0800
On Nov 26, 2009, at 11:07 AM, Mark Hamburg wrote:
> Here were the opportunities I saw for optimization in my broadcast routine:
> 2. Are there optimizations available for passing varargs of particular lengths to the next level -- particularly in the 0 and 1 cases? Beyond that I would expect a simple loop copying the values from stack frame to stack frame to probably win, but I could imagine some opportunities with respect to the probably not uncommon cases where the varargs list is short or empty.
And yes, this is actually the only place where my example touches on varargs. I thought it was relevant to the broader discussion because in my usage, varargs are fairly common in generic code but mostly as a way to pass along arguments that I otherwise don't care about.