Repository navigation
targetwarden v0.1.1
Changed
- Stream
lsofoutput directly into a cross-PID interned byte-arenaPathPool
and compactBuildUnit/ProfileDirstorage, eliminating per-FDPathBuf
churn and raw V1deps/filename retention (4.1–4.9× lower peak memory on
multi-target scans and reclaims). - Switch profile discovery,
.fingerprint/*.jsonreads, post-lock
revalidation, and safe tree removal to FD-anchoredrustixsyscalls with
reusable scratch buffers and deterministic single-threaded target scanning to
eliminate APFS metadata lock contention (20–55% lower system CPU and cycles). - Release
ScanSnapshotand safety verdicts before executing reclaim plans,
tail-seekactions.jsonlfrom EOF when reading recent history, and stream
text reports without constructing JSON intermediate structs. - Set
MallocSpaceEfficient=1in the rendered macOS LaunchAgent plist,
reducing sleepingwatchdaemon physical memory footprint from ~10.7 MB to
~1.0 MB.
Fixed
- Disable primary-device
d_inohardlinkstatatskipping when/sbin/mount
is unavailable (fail-closed) and align symlink accounting betweenInventory
andFullscan modes. - Open fingerprint JSON and companion files with
O_NONBLOCKand handle
PathPoolbounds fail-closed without panicking.
Install or upgrade
curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.1/install.sh | TARGETWARDEN_VERSION=v0.1.1 shArchives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.