You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
suspend fun getUserProfile(): UserInfo?
{
val start = Clock.System.now()
val result = firestore.collection("User").document(auth.currentUser!!.uid).snapshots
.mapLatest { user ->
user.data<UserInfo>()
}
.firstOrNull()
val end = Clock.System.now()
println("time: ${(end-start).inWholeMilliseconds}")
return result
}
Do you have any insights into why it takes about 2000ms on Android and around 200ms on iOS? The Android call is about 10 times slower, which is impacting the UI. Keep in mind that is a Kotlin Multiplatform repo, so it runs the same function for both phones.
Thanks for the help.
The text was updated successfully, but these errors were encountered:
I have this simple function on my KMM repo:
Do you have any insights into why it takes about 2000ms on Android and around 200ms on iOS? The Android call is about 10 times slower, which is impacting the UI. Keep in mind that is a Kotlin Multiplatform repo, so it runs the same function for both phones.
Thanks for the help.
The text was updated successfully, but these errors were encountered: