What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-21 04:02:11
should i use singletone okhttpclient
OkHttp performs best when you create a single OkHttpClient instance and reuse it for all of your HTTP calls. This is because each client holds its own connection pool and thread pools. Reusing connections and threads reduces latency and saves memory. Co... Add solution