Skip to content

Compactor maintenance and compression improvements - #1

Merged
wefalltomorrow merged 30 commits into
masterfrom
best-of-compactor
Sep 7, 2026
Merged

wefalltomorrow merged 30 commits into
masterfrom
best-of-compactor

Conversation

@wefalltomorrow

@wefalltomorrow wefalltomorrow commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Updates the original Compactor codebase while keeping the existing lightweight Rust GUI and WOF-based workflow.

Compression and analysis

  • LZX is the default compression mode.
  • Minimum estimated savings is configurable; the default is 1%.
  • Analysis estimates post-compression size and additional savings before changes are made.
  • Analysis and compression use the same sampled compressibility threshold.
  • Default file-extension exclusions were removed. Eligible files are judged by sampled contents instead.
  • Default path exclusions remain for Windows, System Volume Information, and Windows-managed root $* paths.

Correctness and safety

  • Fix Win32 BOOL handling for WOF DeviceIoControl calls.
  • Handle ERROR_COMPRESSION_NOT_BENEFICIAL correctly.
  • Use the required access flags for WOF operations.
  • Make exclusion matching case-insensitive and ignore blank entries.
  • Skip encrypted, sparse, offline, reparse-point, and NTFS-compressed files.
  • Key the incompressible cache by path, size, and modification time so changed files are retried.
  • Use zero-safe progress calculations and saturating size arithmetic.
  • Make compression progress byte-aware.

GUI and maintenance

  • Show estimated post-compression size and savings with a separate legend marker.
  • Remove decorative button/navigation glyphs and use plain UI text.
  • Correct the compression-mode labels to show LZX as the default.
  • Update README, CHANGELOG, About text, and Cargo metadata for the maintained fork.
  • Build and test Windows x64 MSVC on stable Rust in GitHub Actions.
  • Use current actions/checkout and actions/upload-artifact releases.

The changes are limited to the existing Compactor workflow; no scheduler, updater, background service, telemetry, Steam integration, automatic algorithm switching, or default parallel compression is added.

@wefalltomorrow wefalltomorrow changed the title Build a lean best-of Compactor Compactor maintenance and compression improvements Sep 7, 2026
@wefalltomorrow
wefalltomorrow merged commit 11c626d into master Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant