Join Slack
Is there any performance benefit (or even penalty) in making all classes of an application (not libr...
# compiler
m
Marc Knaup
01/10/2019, 11:16 AM
Is there any performance benefit (or even penalty) in making all classes of an application (not library)
internal
? Like in Swift where when everything is internal and thus never used from other modules it can be optimized and inlined quite a lot.
m
miha-x64
01/10/2019, 11:29 AM
Probably nothing will change. Except longer, a bit mangled names.
l
louiscad
01/10/2019, 8:33 PM
On the JVM, nothing will change apart from longer, mangled names as Mike said, which takes a bit more space, although it's close to insignificant.
m
Marc Knaup
01/10/2019, 9:14 PM
Alright, thanks guys
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by