A home directory of 2.6 million directories and 17 million files is
19.7 million nodes, so every field of Node is paid that many times: its
120 bytes were 2.36 GB of the scan's 3.27 GB peak.
- own_bytes and own_files are no longer stored. After aggregate a leaf's
own figures always equal its totals, and only the selection line reads
a directory's, so Node::own_bytes() and own_files() sum the direct
children when asked. A leaf's bytes is now the measured size and the
only input; de-duplication zeroes it for a second name, as it zeroed
own_bytes before.
- dirs is a u32, which packs beside the one-byte fields.
- inode is Option<(u64, NonZeroU64)>: no file has inode or file record
zero, so None fits in the niche and the pair costs 16 bytes, not 24.
Node::identity() gives the plain pair.
On the same home directory, peak memory for a scan falls from 3,267 MB
to 2,588 MB and node storage from 2,359 MB to 1,731 MB. Trees are
identical to upstream's with de-duplication off (1.25 million nodes
across ~/src, /Applications and /System/Applications, both size modes),
and the totals are identical with it on. a_node_stays_small holds the
size on 64-bit targets.
On macOS the walk listed each directory with std::fs::read_dir and then
called DirEntry::metadata for every file, an lstat of its full path, plus
one more per directory for the dataless flag and the device. On a home
directory of 2.6 million directories and 17 million files that is some
20 million system calls on top of the listing, each of which makes the
kernel set up per-file state.
macos.rs lists a directory with getattrlistbulk(2), which returns the
name, type, device, inode, modification time, flags, link count and sizes
of a whole buffer of entries per call, the way windows.rs already does
with FileIdExtdDirectoryInfo. The sizes are the ones stat reports:
ATTR_FILE_ALLOCSIZE is st_blocks * 512 (every fork, as st_blocks counts),
ATTR_FILE_DATALENGTH is st_size (the data fork). Checked against lstat on
151,000 files across system apps, app bundles, ~/Library and source
trees, and by a test with sparse, hardlinked, symlinked and
resource-forked files. An entry a file system describes only in part is
read with statat relative to the open directory.
Measured on an M5 Pro with 15 walk threads, warm and otherwise idle,
alternating with upstream/main:
~/src (88k directories, 696k files) 4.3-4.5 s -> 2.0 s
whole home directory (2.6M, 17M) 116.6 s -> 90.4-91.6 s
User CPU for the home scan fell from 24.6 s to 9.6 s, and system CPU
from 630 s to 430 s. Trees are identical to the standard listing's with
hardlink de-duplication off (3.3 million nodes, both size modes); with it
on the totals are identical, and which name of a hardlinked file is
charged varies as it already did between runs.
Linux keeps the standard listing, whose DirEntry::metadata is already a
statx relative to the directory; Windows keeps its own.
Elevated scans of a whole NTFS drive read the master file table in large parallel reads instead of walking directories; any failure falls back to the walk. The walk also allocates once per entry, tallies progress per directory and folds hardlink de-dup into the parallel aggregate pass.
The README has always said the mouse's side buttons retrace the visited
directories, and on_mouse_down had the two MouseButton::Navigate arms for
it, but nothing ever delivered buttons 8 and 9: the mosaic registered
listeners per button, for Left and Middle only. The arms were dead code.
Replaced the two registrations with on_any_mouse_down, so every button
reaches on_mouse_down and the Navigate arms work. One listener rather
than four, and the per-button form would have needed a new registration
for each button the platform names.
Guarded the arms on Screen::Explore, matching the alt-arrow path: on the
review screen the marked list is not somewhere history should move.
The help screen and the hover card on `<` and `>` named only the keys,
so the in-app bindings were narrower than the README's. Both now mention
the side buttons.
`cargo xtask bundle` from a fresh clone failed with `rustc 1.94.0 is not
supported by the following package: xtask@0.10.1 requires rustc 1.97` when
the machine's `rustup default` was older than the workspace MSRV. The message
blames xtask only because `.cargo/config.toml` aliases `cargo xtask` to
`cargo run -p xtask`, so it is the first package in the build graph; cargo
rejects the whole workspace before anything compiles.
CI pins 1.97 but nothing provisioned it for builders. rust-toolchain.toml
pins the same version, with the clippy and rustfmt that `make lint` needs, so
rustup fetches it on the first build and local lints match the gate.
Verified from this commit: `cargo xtask --help` (the command that failed)
runs, `cargo xtask lint` is green, and `cargo xtask bundle` produces
target/bundle/disktree-0.10.1-aarch64-macos.zip.
gpui-omarchy 0.1.3 needs gpui-kit 0.6.6, which brings gpui-pre 0.3.6.
The README gives the xattr command that clears the quarantine mark an
unsigned download carries, so Gatekeeper stops calling the app damaged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
cmux terminates the foreground process group when AppKit activates an executable reached through the macOS command-line symlink.
Restart interactive cmux launches once in their own process group before AppKit starts. Preserve arguments, prevent recursive restarts with an environment marker, and leave non-cmux and non-interactive launches unchanged.
Linux, macOS and Windows, each x86_64 and aarch64, on native runners.
The release is drafted first and published once every build is in, so
a failed build never leaves a public release missing downloads. CI
tests the three architectures it did not run on before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Two ways to hand the marked list on instead of acting on it. `s` saves
the paths the plan would act on, one per line. `a` copies instructions
for an agent: free the space by removing exactly these, checking each
first (unpushed git work, a tool's own clean command), trash over delete,
and report back. A name with a control character is left out of the list
and escaped in the prompt, so a newline cannot pass for another path or
close the list and carry on as instructions.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>