GithubHelp home page GithubHelp logo

Comments (5)

mrusme avatar mrusme commented on May 21, 2024

It looks like it's due to the file size calculation. If I just let it stand for a while fm will eventually become responsive again. Is there a way to ....

  • disable the size column, either through a shortcut or through configuration
  • run the size calculation in a separate thread so it won't block the rest of the UI
    ?

from fm.

mrusme avatar mrusme commented on May 21, 2024

Oh snap, changing the dir and going back results in a full re-calculation of the sizes.

Would it be possible to cache the values?

I'm not quite certain why this takes that much time however. A simple ls -la in that directory completes in 0.03s using exa and also displays the file sizes.

from fm.

mistakenelf avatar mistakenelf commented on May 21, 2024

I had noticed this as well actually with a node_modules directory. Will look at adding a config to disable the size calculation. It runs in separate go routines but for some reason hangs when there is a lot of directories and files. The size calculation is recursively going through directories and calculating the size of all the files in there which ls does not do. That being said I plan to look into why this happens

from fm.

mistakenelf avatar mistakenelf commented on May 21, 2024

@mrusme just released 0.13.4 which adds a config value for calculated_file_sizes which by default will be false. Going to look into why the UI freezes up on large directories with calculated file sizes on

from fm.

mrusme avatar mrusme commented on May 21, 2024

Just upgraded, works perfectly smooth, thanks! File sizes for files show up instantly and no UI hangs to be noticed.

from fm.

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.