And from the example: ``` inline class Name(val s...
# eap
And from the example:
Copy code
inline class Name(val s: String) {
    val length: Int
        get() = s.length

    fun greet() {
        println("Hello, $s")
Would it not be preferred to use
inline val length...
Not really. HotSpot and r8 will inline the getter method. We've measured unsigned arithmetics performance on some number crunching code (which called such small methods in a tight loop) against equivalent manual implementation. No difference, both on HotSpot and on Android with d8+r8.