Repository navigation
Releases
v2.0.0
hyperdu 2.0 is a drop-in du. Run it as du, gdu or hyperdu du for GNU or BSD compatible output, on average 1.35x faster than GNU du. The explorer's flags and size accounting now match du, which changes some existing behavior. See Breaking changes before upgrading scripts.
Highlights
dudrop-in mode. Symlink the Native AOT binary asduorgdu, or runhyperdu du. Supports the GNU dialect (Linux, andgdueverywhere) and the BSD/macOS dialect (duon macOS). Force one withHYPERDU_DU_DIALECT=gnu|bsd. Linux and macOS archives include theduandgdusymlinks.- Faster than GNU
du. A parallel engine with ordered streaming output: 2.4x on 250,000 files, 1.35x geometric mean across 64 benchmark scenarios, with output matchingduin all of them. - Windows backend. Scans with
NtQueryDirectoryFilein both the explorer anddumode. - Accurate disk usage in the explorer. Sizes count allocated blocks and count hard-linked files once, the same way
dudoes.
Breaking changes
Explorer flags now follow du
| v1.x flag | v2.0 flag | What happens if you keep using the old flag |
|---|---|---|
-t <N> (threads) |
-j <N> / --threads <N> |
-t now means --threshold <SIZE>. -t 8 runs without error but hides entries under 8 bytes instead of setting 8 threads. |
-v |
-V / --version |
Exits with status 1 and a migration message. |
-e <path> |
--exclude=<PATTERN> / -X <FILE> |
Exits with status 1 and a migration message. Exclusions are now du-style globs that match files and directories. |
-h |
--help |
-h now means --human-readable. |
Sizes are disk usage, not file length
v1.x added up apparent file sizes. v2.0 counts allocated disk blocks and counts hard-linked files once, so totals can differ from v1.x for sparse, compressed or hard-linked files. To get the old behavior:
--apparent-sizecounts apparent sizes again.-l/--count-linkscounts each hard link.
New explorer options
--apparent-size, -b, -h, --si, -t, -l, -x, -L, --exclude, -X. Run hyperdu --help for details.
Install
- WinGet:
winget upgrade JaretVarn.hyperdu(once the winget-pkgs PR for 2.0.0 is merged and published) - .NET tool:
dotnet tool update -g hyperdu(explorer andhyperdu duonly, not adusymlink target) - Binaries: Native AOT builds for Linux, macOS and Windows are attached below. Check them against
SHA256SUMS.
What's changed
- Add automated du parity and ecosystem benchmarking framework (#30)
- Build the du compatibility test harness (#31)
- du persona MVP on a sequential walker (#32)
- du traversal semantics (#33)
- du time and locale formatting (#34)
- Parallel du engine with ordered streaming output (#35)
- Package hyperdu as a du drop-in (#36)
- Align explorer native accounting with allocated blocks, dedupe and openat (#41)
- Align explorer CLI flags and exclusions with du (#42)
- BSD/macOS du persona and macOS CI compatibility harness (#43)
- Windows NtQueryDirectoryFile backend for the explorer and Windows du (#44)
- Benchmark fairness, precision and score reporting (#45)
- Remove O(D^2) deep-chain and startup overhead in du and the native scanner (#46)
- Fixes and code quality: ignored closedir/close results (#26), Sonar cleanups (#25, #27, #28), CI quality reporting (#47)
- Docs: README rewrite and screenshots (#23), README trim and benchmark summary (#48)
Full Changelog: v1.2.0...v2.0.0
v1.2.0
What's Changed
- ci: upload release assets directly, fix broken WinGet action by @jav76 in #6
- Scan with direct libc calls on Linux and macOS (D4) by @jav76 in #21
- Release foundation for v1.2.0: tag versioning, hyperdu binary, glibc 2.17 Linux builds, SHA256SUMS, pinned WinGet by @jav76 in #22
Full Changelog: v1.1.1...v1.2.0
v1.1.1
Overview
hyperdu v1.1.1 introduces automated Windows Package Manager (WinGet) publishing to the CI/CD release pipeline and updates project documentation with WinGet installation options.
hyperdu is a high-performance, cross-platform terminal-based directory space analyzer written in C# and built on .NET 10. Designed for massive directory trees and high-latency filesystems, hyperdu scans disk structures using a custom multi-threaded engine that dynamically prioritizes scan queues based on user navigation in real time.
What's New in v1.1.1
- Automated WinGet Publishing: Integrated
microsoft/winget-create-actioninto GitHub Actions (publish.yml) to automatically submit release manifests tomicrosoft/winget-pkgson new version tags. - WinGet Installation:
hyperduis officially available via WinGet under the package identifierJaretVarn.hyperdu. - Documentation Updates: Added WinGet package status badges and installation instructions to the project
README.md.
Summary of Project Functionality
1. High-Performance Parallel Scanning Engine
- Non-Recursive Traversal: Uses a custom multi-threaded directory scanner built with non-recursive stack allocation to traverse deep directory trees without hitting OS stack overflow limits.
- Dynamic Scan Queue Prioritization: Employs a 3-tier queue (High, Medium, Low) that re-evaluates worker threads dynamically. When a user highlights or enters a subdirectory in the UI, background workers immediately shift CPU and I/O resources to scan that view first.
- Pause and Resume Controls: Allows users to pause active scanning threads on demand to free up disk and CPU resources, then resume traversal seamlessly.
- On-Demand Directory Rescanning: Supports refreshing individual directories on demand without re-scanning the entire disk.
2. Hardware and Mount Auto-Optimization
- Network Mount Detection: Automatically detects Linux network filesystems (such as NFS, CIFS, SMB, SSHFS, Ceph, and GlusterFS) and scales up the scanner worker count (up to
max(32, 2 * Cores)) to mask high network latency. - Rotational Drive Optimization: Detects mechanical HDDs and limits concurrent worker threads to
1to prevent disk head thrashing and maximize sequential read performance. - ThreadPool Starvation Mitigation: Adjusts minimum .NET ThreadPool threads dynamically based on configured worker counts to ensure fast ramp-up times during heavy blocking I/O operations.
3. Interactive Terminal Explorer (TUI)
- Real-Time Visual Progress: Built with Spectre.Console, featuring live HSL color-coded disk usage bars, scanning state indicators, and real-time size and file delta counters.
- Keyboard Navigation:
Up/DownArrow keys: Select and highlight subdirectories (promotes directory scanning to High priority).Enter: Descend into selected subdirectories (promotes directory scanning to Medium priority).Backspace/LeftArrow: Ascend to parent directory.Space: Pause or resume scanning.R: Trigger an on-demand rescan of the selected directory.Q/Esc: Gracefully exit the program.
4. Intelligent Filtering and System Path Safety
- Virtual System Skipping: Automatically skips virtual and pseudo filesystems on Linux (
/proc,/sys,/dev,/run) that do not occupy physical storage. - Hidden Files Filtering: Optional
--skip-hiddenflag to skip hidden and system files/folders during disk traversal. - Custom Exclusions: Supports multiple
--exclude <path>definitions to bypass specific directory paths.
5. Cross-Platform Distribution
- Native AOT Binaries: Pre-compiled, trimmed, single-file native executables generated for Linux (
x64,arm64), Windows (x64,x86), and macOS (x64,arm64). - Package Managers: Available as a .NET Global Tool (
dotnet tool install -g hyperdu), a NuGet package (hyperdu), GitHub Packages, and Windows Package Manager (winget install JaretVarn.hyperdu).
Installation Quick Start
Windows (WinGet)
winget install JaretVarn.hyperdu.NET Global Tool
dotnet tool install -g hyperduBasic Command Usage
hyperdu [target_path] [options]Available Options
-h,--help: Displays help and usage instructions.-v,--version: Prints current version information.-t,--threads <N>: Sets the number of concurrent worker threads.-e,--exclude <path>: Excludes specific directory paths from traversal.--skip-hidden: Skips hidden and system files or directories.
What's Changed
Full Changelog: v0.1.4...v1.1.1
v0.1.5-rc
What's Changed
- 0.1.5 by @jav76 in #4
- Add refreshing selected directory via the
rkey. - Add pausing and resuming scanning via the
spacekey. - Minor visual improvements
- Set the default scanning directory to the current working directory if no path parameter is supplied.
- Add refreshing selected directory via the
Full Changelog: v0.1.4...v0.1.5-rc
What's Changed
Full Changelog: v0.1.4...v0.1.5-rc
v0.1.4
v0.1.1
Full Changelog: v0.1.0...v0.1.1
This patch update is mostly CI/CD updates for publishing packages with minimal code changes.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Full Changelog: https://github.com/jav76/hyperdu/commits/v0.1.0
hyperdu v0.1.0 Release Notes
hyperdu v0.1.0, a modern, high-performance, cross-platform terminal-based directory space analyzer built on .NET 10.
hyperdu is designed to analyze massive directory trees and high-latency filesystems with maximum speed, using an interactive terminal explorer and a custom multi-threaded scanning engine that dynamically shifts resource priorities based on your active focus.
Key Features
- Dynamic Queue Prioritization: Uses a custom 3-tier prioritized queue. When you navigate or hover over a folder, scanning threads are immediately shifted to prioritize your active view first (represented by the yellow lightning bolt '⚡' symbol in the UI).
- Parallel Traversal Engine: Traverses directories non-recursively with a configurable worker pool to avoid operating system stack limitations and lock-contention issues.
- Latency-Aware Network Scale-Up: Automatically detects Linux network mounts (NFS, CIFS, SMB, SSHFS) and scales up the scanner's worker thread pool to hide remote network latency.
- Premium Visual Explorer: Offers a terminal explorer UI built with Spectre.Console, featuring real-time size updates, colorful HSL progress bars, and graceful entry states (such as Access Denied indications).
- Scan Duration Tracking: Computes and displays the execution time of subdirectory scans to identify directory performance bottlenecks.
Supported Release Artifacts
Starting with this version, hyperdu is built and distributed in two convenient formats:
1. Self-Contained Executables (Single-File)
Publish artifacts are a single-file, trimmed, self-contained binaries that do not require the .NET Runtime to be pre-installed on the host system:
- Linux: linux-x64, linux-arm64 (Note: 32-bit linux-x86 is unsupported)
- Windows: win-x64, win-x86
- macOS (OSX): osx-x64 (Intel), osx-arm64 (Apple Silicon)
2. Dotnet Global Tool
hyperdu is now published as a platform-agnostic dotnet tool to NuGet.org. You can install it globally on any machine with the .NET SDK installed:
dotnet tool install -g hyperduCI/CD & Deployment Updates
- NuGet Trusted Publishing:
- SonarQube Code Quality: Integrated continuous static analysis using SonarQube to maintain code health, security compliance, and performance standards.
Full Changelog: v0.1.0-beta.2...v0.1.0-beta.3
Full Changelog: https://github.com/jav76/hyperdu/commits/v0.1.0