Is there a difference in performance or rather mem...
# android
a
Is there a difference in performance or rather memory footprint defining a constant outside of a class with
const val
and putting a
val
inside a
companion object
? What is considered better practise or are those two approaches not interchangeable and have their own use cases?