-
-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
I have this simple function on my KMM repo:
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.
swapindodeveloper, tristanguerin and mschwerz-bitrip
Metadata
Metadata
Assignees
Labels
No labels