rdhruva
08/20/2018, 8:38 PMobject {}
versus top level functions in a kotlin file, specifically from the perspective of garbage collection on android.
If I have an object with a bunch of methods (let’s say it’s logging code which i don’t want in my main activity/fragments). Is it better to model this is an object with 6 methods, or as 6 top level functions in LogHelper.kt
file?