Coder Social home page Coder Social logo

Comments (2)

K1rakishou avatar K1rakishou commented on August 23, 2024 1

It's not a good idea to store images in the memory (maybe only previews). They take a shit ton of memory and you will probably have like 5-10 images in the cache at a time. And what if an image has dimensions like 9999x9999 (that's like 300MB)? You won't be able to allocate this much memory and the app will crash immediately. And if you think that your phone has enough memory then, unfortunatelly, you are probably wrong since Android applications are not allowed to use ALL of the phone memory, just some fraction (depends on device) after that OOM will follow (and even if your device can do that, there is the memory fragmentation). And, by the way, IIRC Clover/Kuroba do not save the originals of images when you scroll a thread, just their previews, but I may be wrong here (and if I'm then it is probably a bug).

It's probably a better idea to add an option to disable disk cache. But then you will be redownloading images in the same thread every time you open it.

from kuroba.

Adamantcheese avatar Adamantcheese commented on August 23, 2024

K1rak explained it quite well.

from kuroba.

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.