Halina
05/13/2024, 5:50 AMbezrukov
05/13/2024, 3:08 PMHowever, our efforts are often sabotaged by libraries we use. In this article, I present how many threads the most popular network clients use, and how you can check it yourself.And results say Retrofit/Ktor okhttp/Fuel (all three are okhttp-based) are the most expensive (in terms of thread count) libraries. But why? The answer is simple, the author configured it this way so it has nothing to do with libraries' default options. Author directly configured it as "do each request in a separate thread". Using the defaults it would be 5 concurrent requests per host (no much difference comparing with other libraries). So the results make no sense and comparison is not fair
marcinmoskala
05/14/2024, 7:17 PMmarcinmoskala
05/14/2024, 7:49 PM