This release is much faster on Linux, where stating files can be so fast that other
parts of the system turned out to be the bottleneck. dua a should now be as fast
as possible there, and dua i is faster, which also is noticeable up on other platforms.
New Features
-
queue deletion until the scan finishes
Tried it locally, code is rubber-stamp. It's simple enough, which is what matters.A confirmed deletion should be usable during scanning without removing
entries while traversal results are still being integrated. Queue the
requested Delete or Trash action and start the existing deletion worker
automatically after the scan and any snapshot export have completed.Freeze the marked selection while it waits, show the queued status in the
footer and mark pane, and cancel the request on exit or an event-loop
failure. This keeps traversal integration and deletion accounting unchanged.
Performance
-
forward TUI batches from filesystem workers
Filter parent-first batches in the MultiWalk visitor and forward their
owned vectors directly to the traversal event queue. Keep receiving
worker lifecycle events on the dispatcher and join active visits
before publishing scan completion.Sum sibling byte and entry-count deltas before walking their ancestor
chain. Verify that the live tree has the right totals after each
filtered batch.Over 24 warm-cache macOS runs with eight workers and about 65,000
files per fixture, median scan and tree integration time fell from
70.3 ms to 67.1 ms for a flat directory and from 41.1 ms to 34.0 ms
for a deep tree. The visitor alone took 67.0 ms and 35.5 ms.Workspace tests, Clippy, and formatting passed. Linux and Windows
test targets passed cargo check. -
aggregate disk usage on filesystem workers
Rubber-stamp - works on Linux fordua a.Process entry batches in the visitor and merge only workers that contributed
to each finished root. Preserve exclusions, progress, input-order output,
filesystem errors, and shared hard-link and APFS clone accounting. Pass
prepared entries where available and paths where roots can be loaded one at
a time. Use the batch receiver for root completion and worker failures.Cover root ownership, completion ordering, and platform-specific link
accounting. Return the hard-link predicate directly on non-macOS targets
to satisfy the Linux CI Clippy check. -
send traversal entries to the UI thread in batches
The walk dispatcher used to forward every entry as its own channel message,
and the receiving thread went throughselect!for each of them. With a
warm cache, both threads were saturated by this, and limited the scan speed
on machines with many cores.Entries are now collected into
TraversalEvent::Batchwhile the receiver is
busy, up to 256 at a time, and sent right away when it is idle.The read-only journey test asserted that a refresh was still running after
its input was processed, which depended on the number of channel messages.
It now also accepts a refresh that already finished. -
shrink tree nodes from 64 to 48 bytes
Sizes and modification times are stored inline as 64-bit integers, which
covers all sizes below 16 EiB and all times between the years 1677 and 2262.
Values outside of that range are kept in a side table, so nothing is lost.Ancestor sizes are updated through a new fast path that doesn't convert the
whole entry back and forth, as this happens for every ancestor of every entry.
Commit Statistics
- 13 commits contributed to the release over the course of 20 calendar days.
- 21 days passed between releases.
- 5 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
- Uncategorized
- Release dua-cli v3.1.0 (eaa847e)
- Merge pull request #436 from Byron/linux-performance (6c436d5)
- Forward TUI batches from filesystem workers (87f9b11)
- Aggregate disk usage on filesystem workers (bfc6556)
- Merge pull request #438 from mpasternak/perf/batch-traversal-events (5f95a29)
- Review (7c48787)
- Send traversal entries to the UI thread in batches (f217f1e)
- Merge pull request #439 from mpasternak/perf/smaller-tree-nodes (d9b6bcb)
- Review (84f86f8)
- Shrink tree nodes from 64 to 48 bytes (918b64a)
- Merge pull request #434 from Byron/queue-deletion (0435627)
- Queue deletion until the scan finishes (534bf82)
- Merge pull request #432 from Byron/fix-ubuntu-builds (a6d1a98)