Performance Kotlin vs java and is it worth exchanging java for Kotlin?

0

The running performance in android (I mean the speed of the application and not the speed of compilation, since benchmarks in powerful machines showed kotlin slower than java in terms of compilation) of kotlin is faster and efficient? / p>

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

    
asked by anonymous 09.01.2018 / 18:54

1 answer

4

Hello,

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

On language performance during runtime on Android, there are no significant differences with respect to the Java language. Your application will not get faster or 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: link

    
19.01.2018 / 03:09