https://kotlinlang.org logo
#android
Title
# android
m

maxmello

08/26/2021, 3:14 PM
I’m currently still using lots and lots of LiveData in my project. In fact, I just added even more LiveData. Now, I have skipped frames on some devices (which are older devices with older OS versions) during testing. I’m not 100% certain it is because of the LiveData, or if I accidentally introduces a bug along the way. In either case, could I assume a performance improvement when switching to Kotlin Flows? I know LiveData does still a lot on the main thread under the hood, so I would assume the main thread can be freed from computations by switching to Flow?
l

louiscad

08/26/2021, 3:15 PM
Systrace should help you see if those LiveData instances are actually the culprit, and which functions are slowing things down.
m

maxmello

08/26/2021, 4:12 PM
Oh nice, I didn’t knew about that one