Kotlin vs java performance and is it worth trading java for Kotlin?

Asked

Viewed 2,046 times

0

The running performance on android (I refer to the speed of the application and not the build speed, because benchmarks on powerful machines showed the slower Kotlin than java in terms of compilation) of Kotlin is faster and efficient?

I’ve been thinking about abandoning java and learning Kotlin, but I don’t know if it’s worth it, one of the biggest reasons to want to learn was the oracle’s fight with google on copyright issues for using their language, so much so that now the official language of android is Kotlin.

  • 1

    What is the real importance of compiling time?

  • 1

    I refer to the running time, but for me can import why an app of mine managed to break a record compilation delay to 20 minutes this Sunday even using paralel and daemon in android studio

  • Kotlin is an official language of Android, not the official A. The addition was made bearing in mind interoperability with Java.

1 answer

6


Hello,

I’ve been working with Kotlin on Android for about a year and a half. I have used the language in several applications, some written partly in Kotlin and partly in Java, and others written entirely in Kotlin.

Regarding the performance of the language during the running time on Android, there are no significant differences in relation to the Java language. Your app will be neither faster nor slower by using Kotlin.

There are, however, several other gains in using Kotlin instead of Java, ranging from the quality of your code to easier maintenance in the future. In addition, Kotlin accelerates development as language increases its productivity.

For more information, please take a look at this article I wrote: https://medium.com/movile-tech/trocar-o-java-pelo-kotlin-8bed76014d99

  • Do you have any Kotlin book you could recommend?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.