Giter Club home page Giter Club logo

Comments (9)

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

Yes it's a normal behavior:

volume.loadWholeFile(fullPath, 50_000_000).first?.let {

All files larger than 50 MB will not be loaded, so you will not see thumbnails of these files. I did this to avoid overloading the memory. Any better idea is welcome.

from droidfs.

Android-PowerUser avatar Android-PowerUser commented on June 15, 2024

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

Good idea, but the initialization of this volume could still overload the memory.

from droidfs.

Android-PowerUser avatar Android-PowerUser commented on June 15, 2024

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

Thumbnails are currently created with Glide, and it looks like it needs the whole file to create the thumbnail. Maybe I could use a more specialized library.

from droidfs.

Android-PowerUser avatar Android-PowerUser commented on June 15, 2024

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

RCX only loads thumbnails of files smaller than a defined size (20MB by default), like what DroidFS currently does. It also caches thumbnails in the app cache folder in plain text. But obviously DroidFS can't do this.

from droidfs.

Android-PowerUser avatar Android-PowerUser commented on June 15, 2024

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

It all depends on the number of files in the current directory. I have to implement a thread pool with a job queue and load thumbnails one by one in each threads. I think it would be the best solution.

from droidfs.

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.