Under the hood there will always be an array creat...
# announcements
m
Under the hood there will always be an array creation, there’s how vararg works on the JVM. The problem of
*arrayOf()
is cloning, but if you really need to avoid array overhead, just use plain arrays instead of vararg. {@see Effective Java, 2nd Edition, Item 42}