is `this::class.java.simpleName` using reflection?
# getting-started
m
is
this::class.java.simpleName
using reflection?
r
It doesn't use the Kotlin reflection library, but it does use reflection.
m
Is the reflection library in particular where the performance impacts are bad?
r
Performance impact is rarely about which particular features you use. It's all about how you use them.
Reflection can definitely be considered "slow" (relatively speaking), but unless you're doing something crazy in a hot loop, the overall performance impact will likely be negligible.
i
Try to cache them in a closure? For better performance