High performance with idiomatic Kotlin

🧐 What idiomatic Kotlin means

🧐 What performance means

“How Loading Time Affects Your Bottom Line” by Neil Patel

1. Memory management = Garbage Collection

2. Heap fragmentation

3. Resource and memory leaks

4. Slow rendering

💡 Hint 1: Pure functions for parallel processing on multiple CPUs

💡 Hint 2: The high-order functions to reuse the code

💡 Hint 3: Lambdas to treat functions as values

💡 Hint 4: Inline functions and reified types

Generated Java code for the main() Kotlin function

💡 Hint 5: Collections & Sequences

💡 Hint 6: Immutability

💡 Hint 7: Disposable pattern

💡 Hint 8: String templates

💡 Hint 9: @JvmField

💡 Hint 10: Ranges





Engineering Manager @Adobe | Android @GoogleDevExpert | Blogger, Speaker, Trainer #android #kotlin #gde #agile #leadership

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Chapter 16 Interoperating with Java

GO-SQUADS Tech 2.0 — Review

Is AutoML a form of “no-coding”?

Chapter 6 Calculate Complexity Trends from Your Code’s Shape

Better Domain Modeling With Dartz And Equatable

READ COMMITTED anomalies in PostgreSQL

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Magda Miu

Magda Miu

Engineering Manager @Adobe | Android @GoogleDevExpert | Blogger, Speaker, Trainer #android #kotlin #gde #agile #leadership

More from Medium

Introduction To Kotlin Flows

Why use @JvmStatic rather than Companion

Smarter dialogs with Kotlin’s Coroutines

State-Machine in Android/Kotlin