Repository navigation
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