Hey Kotlin community,
as far i know,
inline currently only really affects functions which have higher-order-functions as parameters - But wouldn’t inlining also work for functions with a
... in java) are only syntactic sugar - an array is created, filled with the arguments and then passed to the function. This causes some overhead which is annoying in performance critical scenarios (e.g logging). That’s why most libraries which use variadic functions provide overloads for a small number of arguments.
afaik the compiler could inline such functions without having to create an array just for passing it as parameter - because there is no parameter to pass.
What do you think? Would such a feature have a noticeable impact on the performance of your applications? How hard would it be to implement this?