- Apr 29, 2021
-
-
Yorhel authored
The new data model is supposed to solve a few problems with ncdu 1.x's 'struct dir': - Reduce memory overhead, - Fix extremely slow counting of hard links in some scenarios (issue #121) - Add support for counting 'shared' data with other directories (issue #36) Quick memory usage comparison of my root directory with ~3.5 million files (normal / extended mode): ncdu 1.15.1: 379M / 451M new (unaligned): 145M / 178M new (aligned): 155M / 200M There's still a /lot/ of to-do's left before this is usable, however, and there's a bunch of issues I haven't really decided on yet, such as which TUI library to use. Backporting this data model to the C version of ncdu is also possible, but somewhat painful. Let's first see how far I get with Zig.
-
- Mar 04, 2021
-
-
Yorhel authored
Fixes #171
-
- Jul 12, 2020
-
-
Christian Göttsche authored
Use 'max(10, column_size / 7)' instead of a fixed size of 10
-
- Jun 07, 2020
-
-
Yorhel authored
What a mess. https://code.blicky.net/yorhel/ncdu/issues/153#issuecomment-764
-
- Jun 05, 2020
-
-
Christian Göttsche authored
Avoid undeclared identifiers when compiling with older kernel headers.
-
- May 30, 2020
-
-
Christian Göttsche authored
-
- May 15, 2020
- May 13, 2020
-
-
Saagar Jha authored
-
- May 07, 2020
-
-
Saagar Jha authored
-
- May 06, 2020
-
-
Yorhel authored
Silly one-character typo that causes directory apparent sizes to be very off in some scenarios. Reported & patched by Andrew Neitsch.
-
- Apr 21, 2020
-
-
Yorhel authored
Fixes #150
-
- Apr 08, 2020
-
-
Yorhel authored
-
Christian Göttsche authored
(cherry picked from commit a076ac714aa6fb24e0e9eb227372df84a4b6000b)
-
Christian Göttsche authored
-
Christian Göttsche authored
(cherry picked from commit ef7b4e5c28739c26b3a120296f9dc2ddaf2d4375)
-
Christian Göttsche authored
(cherry picked from commit 9f28920a64c155957b83324cd3a3cf0fda6020c9)
-
Christian Göttsche authored
(cherry picked from commit ad5b7fce74a3b7b0ed726620c81ea552c643cdad)
-
Christian Göttsche authored
(cherry picked from commit 2faefc3b2432409f3ccca0b6ab53a228d5b9b00d)
-
Christian Göttsche authored
(cherry picked from commit 32b77d0064d3e5f52e9204ddeffc29bb21a67753)
-
Christian Göttsche authored
(cherry picked from commit ce7036d249b6f05633c343ab95d88552aab85402)
-
Christian Göttsche authored
(cherry picked from commit 9801f46ece0ca2525f02d71464efc42296dddcb5)
-
Christian Göttsche authored
(cherry picked from commit e4e8ebd9e0037812436a1588809deb23e0f3751a)
-
- Apr 07, 2020
-
-
Christian Göttsche authored
-
- Apr 01, 2020
-
-
Yorhel authored
Fixes #141
-
- Feb 10, 2020
-
- Feb 04, 2020
-
-
Yorhel authored
Reduces memory by a tiny bit. Arguably we never needed tombstones because entries are never removed, so there shouldn't be any performance hit there. We don't even need a 'used' flag either, considering that can be represented by a NULL value, but I'm not really up for implementing/modifying my own hash table. ref: https://attractivechaos.wordpress.com/2019/12/28/deletion-from-hash-tables-without-tombstones/
-
- Jan 25, 2020
-
-
Yorhel authored
They were defined (rather than just declared) in .h files, when they really should be defined in at most a single .c file. Fixes #140.
-
- Aug 17, 2019
-
-
Yorhel authored
Fixes #135
-
- Aug 04, 2019
-
- Jul 23, 2019
-
-
Yorhel authored
This is a best-effort approach to save ncdu state when memory is low. There's likely allocation in libraries that isn't being checked (ncurses, printf). Fixes #132 (it actually doesn't, that needs a 64bit static binary too, but I'll get to that)
-
- Apr 19, 2019
-
-
Yorhel authored
Fixes #128.
-
- Feb 19, 2019
-
-
Martin Storsjö authored
This allocation is currently leaked, but as long as we don't allocate new ones for each refresh, that shouldn't be much of an issue. (cherry picked from commit 9dc2d32a8fb557112f8f96cd14d50b934543ce39)
-
- Feb 18, 2019
-
-
Martin Storsjö authored
-
- Feb 04, 2019
-
-
Yorhel authored
-
- Jan 24, 2019
-
-
Yorhel authored
stat_to_dir() assumes that buf_dir is clean; calling it twice breaks that asumption.
-
Simon Doppler authored
Symlink loops are handled by the stat(2) syscall. Symlinks pointing to a directory are ignored (to avoid loops in the recursive scan).
-
- Jan 21, 2019
-
-
Alex Wilson authored
This adds an 'm' command to show the latest modified time of all files in a directory. The 'M' command allows for ascending and descending mtime sorting. These are only enabled with the -e flag and overload the dir_ext mtime field.
-
- Jan 20, 2019
-
-
Yorhel authored
I had taken care to not sort empty directories during dirlist_open(), but forgot that manual user actions can still cause dirlist_set_sort() to be called, which does not handle empty directories. Reported by Alex Wilson.
-