Vsevolod Profile picture
Kotlin core libraries and tools group lead. Coroutines, serialization, standard library, tooling, concurrency, performance @ JetBrains
Feb 6 10 tweets 3 min read
Nice post from the series.

While it's totally okay to [micro-]optimize specific functions for specific targets (e.g. Dalvik), the standard library implementation is "slow" not because it's not optimized, but, surprisingly, because it is! When designing API for millions of developers, the first thing in mind should be being concise and idiomatic: developers adopt practices and code from the standard library, so eventually, "idiomatic" Kotlin becomes widespread. And idiomatic code is easier to optimize