Code Monkey home page Code Monkey logo

Comments (4)

KoalaBear84 avatar KoalaBear84 commented on September 23, 2024 1

Yes, good idea. Didn't really knew about that difference.

from opendirectorydownloader.

Chaphasilor avatar Chaphasilor commented on September 23, 2024

I also noticed in the manual stats that in the markdown table, the line |**Dirs:** 1.234 **Ext:** 20|**Total:** 0|**Total:** n/a| should not show 0 and n/a for the total amount of links and total estimated size of links. Something's fishy there... 🤔

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on September 23, 2024

This is all intentional, because of performance. If you would output the full statistics every time, and you are scanning a large directory, it can take longer than a second to generate with all the extensions. For a very large directory it might even take multiple seconds, or even 10+ seconds (you will have a directory with like millions of files).

And to use multiple seconds of CPU time every 30 seconds is wasteful and slows it all down. So you get the basic fast statistics automatically, if you want the detailed you need to press s.

See the parameters for that:
https://github.com/KoalaBear84/OpenDirectoryDownloader/blob/master/src/OpenDirectoryDownloader/Statistics.cs#L43

Hopefully.. if/when it's based on SQLite this is no longer needed as a database should be fast enough, hopefully SQLite is fast enough.

from opendirectorydownloader.

Chaphasilor avatar Chaphasilor commented on September 23, 2024

Okay, that makes sense.

And what about aligning the output format a bit more? E.g. always include the thread count, only prefix the first line with the logging info, etc.?

That would make everything a bit more parse-able :)

from opendirectorydownloader.

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.