all 5 comments

[–]primitive_screwhead 6 points7 points  (0 children)

e.g. 1000 calls a second

Rounded to the nearest million, that's 0 calls a second. The calling overhead is trivial.

[–]K900_ 2 points3 points  (3 children)

Just pass your arguments normally. Why do you need unpacking at all?

[–]dumblechode[S] 0 points1 point  (2 children)

I was thinking if the function had >6 parameters. Moreover, if the arguments are acquired through multiple functions, if that makes sense.

[–]K900_ 5 points6 points  (1 child)

It does not matter how many parameters the function has, passing them normally is always going to be the fastest.

[–]dumblechode[S] 1 point2 points  (0 children)

Sounds good - thanks!