Commit graph

7 commits

Author SHA1 Message Date
Yorhel
0783d35793 WIP: Experimenting with a rewrite to Zig & a new data model
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.
2021-04-29 12:48:52 +02:00
Christian Göttsche
227cdb35ae Ignore generated script compile in git
(cherry picked from commit fd75bd0c22)
2020-04-08 10:45:24 +02:00
Yorhel
bb1145dced Added statically linked binary generator script 2013-05-09 16:18:44 +02:00
Chris West (Faux)
a90cf9c7d2 gitignore 2013-01-13 12:42:28 +00:00
Yorhel
8a55c05e7d Some .gitignore fixes 2012-08-16 15:23:55 +02:00
Yorhel
73562d46c5 doc: Use POD as source format and pod2man to generate ncdu.1
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)
2012-01-18 11:36:39 +01:00
Yorhel
c6dfb73040 Converting ignores and versions from subversion to git 2009-04-05 14:59:05 +02:00