Is there any overhead for writing a library in Kotlin for Android?

I am considering porting a Java library (Android) to Kotlin. I really like Kotlin, and the advantages over Java should reduce the number of errors in the library.

Since the library is focused on an environment with limited resources, I am worried that placing the library in Kotlin will result in additional overhead.

Does the Kotlin library (distributed as .class files) provide any runtime or additional overhead compared to the Java library?

Will the resulting Android app be larger or slower due to Kotlin?

+4
source share
1

Kotlin , Android. , , stdlib .

Android- - Kotlin?

Kotlin ( .class ) - Java?

, , , . Proguard .

, , , , .

, . Kotlin , , stdlib .

Kotlin, Java .

Kotlin Android - , , , . , , Java , . Proguard .

+9

Source: https://habr.com/ru/post/1655439/


All Articles