Skip to content
Snippets Groups Projects
  1. Apr 29, 2021
    • Yorhel's avatar
      WIP: Experimenting with a rewrite to Zig & a new data model · 0783d357
      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.
      0783d357
  2. Mar 04, 2021
  3. Jul 12, 2020
  4. Jun 07, 2020
  5. Jun 05, 2020
  6. May 30, 2020
  7. May 15, 2020
  8. May 13, 2020
  9. May 07, 2020
  10. May 06, 2020
  11. Apr 21, 2020
  12. Apr 08, 2020
  13. Apr 07, 2020
  14. Apr 01, 2020
  15. Feb 10, 2020
  16. Feb 04, 2020
  17. Jan 25, 2020
  18. Aug 17, 2019
  19. Aug 04, 2019
  20. Jul 23, 2019
    • Yorhel's avatar
      Handle malloc failure by pausing any activity · bb7b4196
      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)
      bb7b4196
  21. Apr 19, 2019
  22. Feb 19, 2019
  23. Feb 18, 2019
  24. Feb 04, 2019
  25. Jan 24, 2019
  26. Jan 21, 2019
    • Alex Wilson's avatar
      add a max modified time, or mtime, view and sorting · 60fdac06
      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.
      60fdac06
  27. Jan 20, 2019
    • Yorhel's avatar
      Fix crash when attempting to sort an empty directory · 2501fb1a
      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.
      2501fb1a
Loading