Oleg Siboglov
04/19/2022, 5:41 PMinline
modifier for functions. The Kotlin lang webpage for inline function states “Inlining may cause the generated code to grow. However, if you do it in a reasonable way (avoiding inlining large functions), it will pay off in performance, especially at “megamorphic” call-sites inside loops.” When it states that we should avoid inlining large functions, does this refer solely to the function receiving the inline
modifier or does it apply to the contents of the lambda (which is being passed to the inlined function) as well?Joffrey
04/19/2022, 8:16 PMOleg Siboglov
04/19/2022, 9:07 PM