lua-users home
lua-l archive

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

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.