Perfomance impact of ImageLoader.newBuilder()
#1627
Unanswered
Kshitij09-sc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use a custom okHttpClient selectively for subset of requests. So if I receive okHttpClient instance as parameter to my method, I'll be calling
imageLoader.newBuilder().okHttpClient(client).build()
and use it to execute particular request.Is it too expensive to do this on every method call? I agree I could create a modified singleton of ImageLoader and use it but doing that is a bit complicated for me so wanted to know if I could get away with creating new instance of ImageLoader on every request with custom OkHttpClient?
Beta Was this translation helpful? Give feedback.
All reactions