-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reference to dua-cli in the README as similar tool #14
Conversation
As `dua` is providing both a CLI mode as well as an interactive mode via `dua i` I placed it into both categories. Disclaimer: I am the author of this tool and have adapted [this paragraph](https://github.com/Byron/dua-cli/blob/60f432417fe2adbbd54de7293f1c3ffcd45365f7/README.md#L168-L181) for my own README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like duplication.
If the main and default interface of dua
is CLI, add dua (optional TUI)
to the CLI
list.
If the main and default interface of dua
is TUI, add dua (optional CLI)
to the TUI
list.
Thanks for your compliment btw 😄. Though I would imagine that |
I compared to
And here is the one of
So, erm, it uses less than a |
Regarding this line, I see that you intend to push items to
I'm not sure if lazy me is willing to do that. Even the relatively simple CLI doesn't yet have any integration tests of its own because the complexity of setting the environment alone is too much for my lazy ass. Testing a TUI would be nigh-impossible. How could one guarantee the stability of the software without tests? Finally, would you mind if I add |
I believe this is just the top-level that will be listed later - it's not huge and won't show up in any profile.
Indeed it would be quite some work. If lines-of-code count is any measure, the 4k lines of PDU would certainly go up quite a bit.
It's actually straightforward.
Not at all - it would be nice if you could ping me here as I am curious about the findings. Basically you would be comparing the |
So…I couldn't help myself but to imagine how a TUI could work. But let's start with a question: Is there a way to increase the contrast of these percentage lines? It's so hard to make out on certain levels - probably my main sore point with The reason I keep thinking about workflow here is what I am usually doing with that data: I want to delete some of it. Even though a full-blown TUI with selection and subsequent (potentially parallel) deletion would be great, maybe there is a way to output the list of paths that it displayed before in a format that makes copy-pasting for deletion easier. In the end, the user needs complete paths and |
You see, I really like Right now I would probably run it before Maybe something like |
Correction: I'm probably not going to implement an interactive TUI for deleting files in the near future. However,
That's the problem of your terminal and/or your fonts. I use Tilix (which uses VTE under the hood) as my main terminal, and Hack Nerd Font as my font. Here is the screnshot: I also test the same command on Alacritty, and it looks not as good: |
GNU's |
Thanks for the hint, I will see how I can get alacritty to display this better then and change the font.
Neat, that would be working fine as well as I would implement this specifically to be able to use |
|
I am happy to inform you that the benchmark reports is now available as a release artifact |
Congratulations, it's amazing to see there is still performance to be gained in this field. To me the sub-second runs don't matter that much, but for bigger trees this really starts to show and a couple of milliseconds become seconds. I took a look at what it would mean to use In the meantime I will be waiting for the JSON export feature to land which would allow me to use the greater speeds of figuring out good candidates for deletion with the actual deletion TUI of |
Sound advice. I will be implementing this soon. |
In version 0.2.0 (which may or may yet be released), the CLI part of |
Version 0.3.0 has been released. It can now print disk usage data as JSON to stdout as well as visualizing input JSON from stdin. A new benchmark report with the latest version of |
Thanks a lot! I have added an issue to hopefully one day implement a On another note, can it be that the picture in the README right below the list of program versions used to create it is out of date? The benchmark has run multiple times by now yet the last modified date of it appears as Sun, 30 May 2021 04:24:53 GMT (produced with By now I reproduced part of the benchmark run and am curious about what's happening on the CI runner. Note that both
It's interesting how fast As for the reason that on CI the world looks different, the only explanation I could pull out of thin air is that |
I think it's actually about the way you invoke
There are also warnings:
In the GitHub Workflow files, I always add If you also want to also measure cold start, I suggest rebooting after each benchmark. |
Yes, I have yet to update the benchmark section of the README. But it doesn't actually matter, because the |
It's the lazy way of invoking it, admittedly. Ultimately it's
With
And that's the last unresolved riddle here. Thus far the arrival of Please don't get me wrong, to me it matters not who is 'the fastest', but I want to understand what's going on as the benchmark contradicts both my experience and measurements alike. |
I am still in disbelief that these fast programs are actually single-threaded.
I didn't intend to make |
That's a good point. Last time I tested them on MacOS they were. Maybe that changed. What matters is the version the CI system is using and their threaded-ness should be easy to observe with Just to try one, I downloaded the latest source of
It doesn't even saturate a single CPU core, which is quite typical on my system when doing single-threaded filesystem traversals. What matters is the system time (it was stuck in GUI mode for a while longer) so it takes about 18s to traverse what takes Grepping through the code to look for threading didn't yield results either so I doubt there is a compile flag to turn that on. |
As
dua
is providing both a CLI mode as well as an interactive mode viadua i
I placed it into both categories.Disclaimer: I am the author of this tool and have adapted this paragraph for my own README.
Edit: Now that I got to use
pdu
a little I finally get to appreciate the way the data is presented. Whereasdua
gives a high-level overview andpdu
dives in to reveal exactly where the main offenders in terms of disk space usage are. It took me a while and I even wrote my own tool to solve this problem, but finally I can see the benefits of this kind of visualization.dust
never worked for me as it was too slow and…used too much memory, sopdu
truly makes a difference here.Lastly I encourage you to build a TUI which allows the safe deletion of picked items to support the entire workflow people are usually using
pdu
for.