Hello everyone, has anyone noticed/documented Kto...
# ktor
Hello everyone, has anyone noticed/documented Ktor slow response times in mobile clients, when using Ktor in KMM, compared to mainstream native libraries like Retrofit and Alamofire?
👀 2
I don't remember anyone mentioning anything like that here. Do you have some?
I am experimenting a little with the pokemon API call:
Currently I have created 2 functions, one performs the call through KMM-Ktor and the other through Native - Retrofit.
I am back from my benchmark to share my results: My initial issue was that I was sending a header “Connection”, “Close” from the Ktor client. That was the issue for slow response times. Removing this header fixed the issue. Eventually Ktor seems that can be totally compared with the native android client Retrofit and it’s response time was similar.