https://kotlinlang.org logo
#random
Title
# random
e

eygraber

03/11/2024, 3:25 AM
I know this is breaking the cardinal rule of optimization, but in general, is it better to "cache" a lookup to a
KClass
property in a field or access it every time (something like
foo::class.simpleName
)?
e

ephemient

03/11/2024, 3:30 AM
that is pretty light, it's just static data
looking up fields and methods on the other hand…
e

eygraber

03/11/2024, 3:33 AM
Is that the same across all KMP targets?