Skip to content
Snippets Groups Projects
  1. Apr 16, 2022
  2. Mar 25, 2022
  3. Mar 24, 2022
    • Yorhel's avatar
      Fix bad assertion in scan.zig:addSpecial() · 5f383966
      Yorhel authored
      While it's true that the root item can't be a special, the first item to
      be added is not necessarily the root item. In particular, it isn't when
      refreshing.
      
      Probably fixes #194
      5f383966
  4. Mar 16, 2022
  5. Mar 14, 2022
  6. Feb 07, 2022
  7. Feb 05, 2022
    • Yorhel's avatar
      scan: Add UI message when counting hard links · e42db579
      Yorhel authored
      That *usually* doesn't take longer than a few milliseconds, but it can
      take a few seconds for some extremely large dirs, on very slow computers
      or with optimizations disabled. Better display a message than make it
      seem as if ncdu has stopped doing anything.
      e42db579
  8. Feb 03, 2022
  9. Feb 02, 2022
  10. Jan 01, 2022
  11. Dec 26, 2021
  12. Dec 21, 2021
  13. Nov 09, 2021
  14. Nov 02, 2021
    • Yorhel's avatar
      Fix export feature · 5b462cfb
      Yorhel authored
      ...by making sure that Context.parents is properly initialized to null
      when not scanning to RAM.
      
      Fixes #179.
      5b462cfb
  15. Oct 06, 2021
  16. Oct 05, 2021
  17. Sep 28, 2021
  18. Aug 16, 2021
  19. Jul 31, 2021
  20. Jul 28, 2021
    • Yorhel's avatar
    • Yorhel's avatar
      Fix Dir.fmtPath() when given the root dir · ba14c093
      Yorhel authored
      ba14c093
    • Yorhel's avatar
      3acab71f
    • Yorhel's avatar
      Implement a more efficient hard link counting approach · 0d314ca0
      Yorhel authored
      As aluded to in the previous commit. This approach keeps track of hard
      links information much the same way as ncdu 1.16, with the main
      difference being that the actual /counting/ of hard link sizes is
      deferred until the scan is complete, thus allowing the use of a more
      efficient algorithm and amortizing the counting costs.
      
      As an additional benefit, the links listing in the information window
      now doesn't need a full scan through the in-memory tree anymore.
      
      A few memory usage benchmarks:
      
                    1.16  2.0-beta1  this commit
      root:          429        162          164
      backup:       3969       1686         1601
      many links:    155        194          106
      many links2*:  155        602          106
      
      (I'm surprised my backup dir had enough hard links for this to be an
      improvement)
      (* this is the same as the "many links" benchmarks, but with a few
      parent directories added to increase the tree depth. 2.0-beta1 doesn't
      like that at all)
      
      Performance-wise, refresh and delete operations can still be improved a
      bit.
      0d314ca0
Loading