sdeleuze
03/28/2019, 9:01 AMinline
for performance reasons (currently only those leveraging reified type parameters are), any thoughts on that?diesieben07
03/28/2019, 9:02 AMinline
needs to be used with careful consideration. It locks you in to your method implementation (you can't change it without forcing people to recompile their code).
Usually it is better to only use it where actually needed (reified
) or performance critical code using lambdas (like filter
in the standard library).
The JVM will inline things that should be inlined, usually.