Coder Social home page Coder Social logo

Comments (8)

daniel-luberda avatar daniel-luberda commented on August 20, 2024

@molinch As this is anaisbetts/ModernHttpClient#184 not so bad, this one: anaisbetts/ModernHttpClient#185 is a real problem.

It would be nice to be able to choose alternative http clients in Initialize method. For now, I would also switch to mono HttpClientHandler. It will also make FFImageLoading independent of ModernHttpClient, which is another bright side (not everyone can use it).

Instead, when those bugs are fixed, I would add a short tutorial in README.md showing how to change http client to ModernHttpClient and make FFImageLoading requests faster.

from ffimageloading.

molinch avatar molinch commented on August 20, 2024

I agree with you #185 is really bad. #184 might be difficult to fix, it seems to be the Android network stack that has an issue. Mono has a different network stack, it opens its own sockets, so it is not affected.

Have you been able to reproduce these issues? And just switching the HttpClient in ImageService.Initialize fixes both. Could you also give it a try?

Once I have your feedback I will switch to default HttpClient. It makes sense and people can still override it.

I'm all in for a blog post it's a great idea 👍 Also if you would like to improve the README then don't hesitate. I'm a bit worried about it's size, it could be splitted in more files IMO.

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

Tested it, and it looks like it's solved on Android. Didn't test on iOS yet though.

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

Actually, didn't notice any performance difference when using mono HttpClientHandler.

from ffimageloading.

molinch avatar molinch commented on August 20, 2024

Yeah me neither...

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

Maybe the requests rate it's still to low to benefit from ModernHttpClient (eg. large image data responses vs high rate rest requests, etc).

from ffimageloading.

molinch avatar molinch commented on August 20, 2024

True, could be that our scenario is different from most use cases

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

It looks like it's a win-win situation (less dependencies and no bugs) :)

from ffimageloading.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.