I created an issue for a potential optimization: I...
# language-proposals
d
I created an issue for a potential optimization: It seems that when there is a method with
vararg
and 0 arguments, a
new Object[0]
is allocated every time, according to the decompiled code https://youtrack.jetbrains.com/issue/KT-32474
g
It’s not a language proposal
1
👍 2
k
It’s also not a really a Bug, because Java does exactly the same.
d
I would hope that it would be optimized, like the stateless lambdas
which prevent an allocation every time