Join Slack
Powered by
I know this is breaking the cardinal rule of optim...
# 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
ephemient
03/11/2024, 3:31 AM
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?
9
Views
Open in Slack
Previous
Next