Is there an overhead for writing a library in Kotlin for Android?
问题 I'm considering porting a Java (Android) library to Kotlin. I really like Kotlin and the benefits over Java should reduce the number of bugs in the library. Since the library is targeting a resource constrained environment I'm worried that by porting the library to Kotlin there will be extra overhead. Does a Kotlin library (distributed as .class files) introduce any runtime or extra overhead versus a Java library? Will the resulting Android app be any larger or slower because of Kotlin? 回答1: