A function f() returns multiple values, which are to be fed into a second function g(). I cannot change f(), but I can change g() and all calls to it. I'm wondering if it's possible to say which variant performs best? What does it depend on?
Function header with one table argument
function g(arg) --code endand function call with table constructor
g({f()})Function header with variable number of arguments
function g(...) --code endand regular function call
g(f())Function header with multiple variables (assuming number of
f()return values is known)function g(x, y, z) --code endand regular function call
g(f())A completely different variant?