Join Slack
Powered by
Under the hood there will always be an array creat...
# announcements
m
miha-x64
01/16/2017, 10:23 AM
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}
2
Views
Open in Slack
Previous
Next