- Aug 27, 2012
-
-
Yorhel authored
POSIX defines ino_t to be of an unsigned integer type, and searching around the net didn't tell me of any definitions conflicting that. So every ino_t can be represented in an uint64_t. (Assuming that is the largest integer type in use for an inode number, but I'm sure that assumption will hold for a while) (dev_t, on the other hand, is a bit messier. Still figuring out what to do with that.)
-
Yorhel authored
2 billion files should be enough for everyone. You probably won't have enough memory to scan such a filesystem. int is a better choice than long, as sizeof(int) is 4 on pretty much any system where ncdu runs.
-
Yorhel authored
*Should* be equivalent, but having a clearly standardised width is much better.
-
Yorhel authored
This allows scanning stuff without initializing ncurses. Not too useful at this point since ncdu will switch to an ncurses environment when it's done anyway, but this will become more useful when the export-to-file feature has been implemented.
-
- Aug 26, 2012
-
-
Yorhel authored
This silences clang and gcc with -O2 -Wall -Wextra
-
Yorhel authored
-
Yorhel authored
The architecture is explained in dir.h. The reasons for these changes is two-fold: - calc.c was too complex, it simply did too many things. 399ccdeb is a nice example of that: Should have been an easy fix, but it introduced a segfault (fixed in 0b49021a), and added a small memory leak. - This architecture features a pluggable input/output system, which should make a file export/import feature relatively simple. The current commit does not feature any user interface, so there's no feedback yet when scanning a directory. I'll get to that in a bit. I've also not tested the new scanning code very well yet, so I might have introduced some bugs.
-
- Aug 21, 2012
-
-
Chris West (Faux) authored
-
- Aug 18, 2012
-
-
Yorhel authored
http://dev.yorhel.nl/ncdu/bug/15
-
Yorhel authored
-
Yorhel authored
This fixes a bug where ncdu would stop scanning a directory if the terminal window has been resized to a small enough space that the warning would show up.
-
Yorhel authored
http://dev.yorhel.nl/ncdu/bug/13
-
- Aug 16, 2012
-
-
Yorhel authored
-
- May 21, 2012
-
-
Yorhel authored
A more modern and practical structure.
-
- Jan 18, 2012
-
-
Yorhel authored
-
Yorhel authored
Damn, it's 2012 already.
-
Yorhel authored
POD is somewhat more simple and flexible. I now use ncdu.pod to generate a nicely formatted manual page on the ncdu homepage, rather than displaying a rendering of ncdu.1 formatted in a monospace font. The tarball will still contain an ncdu.1, so there's no extra dependency on pod2man. (Unless you clone from git, since ncdu.1 isn't in the repo)
-
- Nov 03, 2011
-
-
Yorhel authored
I'm now following the same idea from ncdc of using $VERSION+g in the git repositories.
-
- Oct 31, 2011
-
-
Yorhel authored
This should also allow compilers to generate better code.
-
Yorhel authored
This should be a *significant* performance increase when scanning a directory that has many hard links. I used the khash library written by Attractive Chaos[1]. This library fits perfectly into ncdu's "use as little memory as possible but still try to be very fast"-policy. It's API is somewhat quircky in use, but I guess that is to blame to the lack of generic programming support in C. Blog: http://attractivechaos.wordpress.com/ Lib: https://github.com/attractivechaos/klib/blob/master/khash.h
-
Yorhel authored
-
Yorhel authored
-
- Sep 09, 2011
-
-
Yorhel authored
-
Yorhel authored
-
Rodolfo Borges authored
-
- Aug 13, 2010
- Jul 19, 2010
- Jul 18, 2010
-
-
Yorhel authored
This solution is far cleaner. Thanks to Ben North for pointing me to the *-width-specifier that has apparently been built into the printf-family functions for, well, quite a while, it seems.
-
- Apr 28, 2010
-
-
Yorhel authored
The memory for this format is now statically allocated as well. I was under the impression its size would depend on wincols, but this is the format we're talking about, the string does not have to hold the actual line contents. I must have been sleeping again... Oh well, this is a slight performance improvement, although it doesn't seem the be the cause of the browing slowness when running under valgrind. (Obviously running ncdu with valgrind is supposed to be slower, but the current performance is rather bad...)
-
Yorhel authored
Instead you now get the usual 'no items to display' message when hiding hidden files in the root directory.
-
Yorhel authored
This changes the behaviour back to it was before the dirlist abstraction, which is the behaviour I prefer.
-
Yorhel authored
Rather than storing a pointer to another memory allocation in the struct. This saves some memory and improves performance by significantly decreasing the number of calls to [c|m]alloc() and free().
-
Yorhel authored
Also changed other occurences of the same situation to use the same checking method (>= rather than a +1) for consistency. Fixes bug #2981704.
-
- Apr 27, 2010