Direct invocation is always faster IMHO. Surprise...
# coroutines
k
Direct invocation is always faster IMHO. Surprised you are doing that kind of low level stuff in Kotlin
1
d
it's just an example, it's a much higher level protocol 🙂
m
If performance is key you will want to avoid nested objects, as that will mean chasing pointers (in the absence of value types). Megamorphic calls are also painful, but the JIT compiler may be better able to handle those (inline caches, etc). JMH and see 🙂
😀 1