Skip to content

Upgrade dependencies, optimize background load, and add version pruners - #6

Merged
404oops merged 4 commits into
mainfrom
feat/pruner-and-optimizations
Dec 4, 2026
Merged

404oops merged 4 commits into
mainfrom
feat/pruner-and-optimizations

Conversation

@404oops

@404oops 404oops commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Change

  • Dependency upgrades: Upgraded vampir to 0.4.2 (and pinned gpui-ce to 64ce7c0e), notify to 9, sha2 to 0.11, base64 to 0.23, ed25519-dalek to 3, and winreg to 0.56; removed once_cell in favor of std::sync::LazyLock / const Mutex::new.
  • Memory & background load optimizations:
    • Reduced macOS unbundled app physical footprint from ~282 MB to ~136 MB (switched Dock icon embed from 2048×2048 to 256×256 and cached generic icon probe).
    • Precompiled lock-free RegexSet lookup tables in backup_template, bounded versions_by_project cache, switched activity log to VecDeque, eliminated UI-thread disk hashing in restore_version_by_id, and added viewport + opaque-modal occlusion culling with dense graph indices.
    • Made the backend pump adaptive (50 ms active, 250 ms idle visible, 1 s hidden in menu bar/tray), replaced the 200 ms single-instance raise poller with a blocking background receiver, and relaxed HybridFileWatcher's full-tree safety scan to 60 s when the OS watcher is active (keeping 5 s fallback).
  • Version management & UX:
    • Added right-click context menus for folder tabs, projects, and version nodes (including Delete Project to system Trash/Recycle Bin and Manage Versions…).
    • Added the per-project Manage Versions pruner modal with side-by-side Before/After dotted-grid previews, backup counts, live storage diff (saves ...), and spinbox keep counter.
    • Renamed Settings to Options across all 6 locales (en, sr, de, fr, es, el) and added the Global version pruner, Storage saver auto-pruning toggle, and live/cumulative storage-saving info.
    • Added click-outside-to-close on Options and Manage Versions, Cmd+W/Ctrl+W window close with non-destructive dismissal of transient overlays, wide-text layout/padding fixes for Serbian Cyrillic / German / Greek, and refreshed wiki docs and screenshots.
  • Windows test fixes: Fixed file:/// URL construction in crates/musit-core/tests/e2e_backup.rs and gated Unix-only recording_worker() in crates/musit-core/src/watcher.rs.

Verification

  • macOS (Apple silicon):
    • cargo fmt --all --check — passed
    • cargo test --workspace --locked — passed (81/81 tests, including locale key/placeholder parity and pruner/storage tests)
    • cargo build --release --locked — passed
    • Steady-state background profile (--autostart): ~0.0% steady-state CPU (sample 100% sleeping), ~2 idle wakeups/sec (top)
    • Manual visual checks on macOS: Options, Storage saver, Global version pruner, Manage Versions storage diff, Serbian Cyrillic wide-text padding, click-outside-to-close, Cmd+W + non-destructive overlay dismissal, and refreshed screenshots.
  • Windows 11 (Parallels ARM64 VM):
    • cargo fmt --all --check — passed
    • cargo test --workspace --locked (with __COMPAT_LAYER=RunAsInvoker for auto_updates-*.exe) — passed (77/77 tests, 0 warnings)
    • cargo build --bin immersion --locked — passed
    • scripts\test-windows-updater.ps1 (NSIS 3.13) — passed
    • Runtime checks: Direct3D/DirectWrite UI launch + screenshot inspection, single-instance raise, and Ctrl+W clean exit.
  • Gaps / unverified:
    • Linux targets were not compiled or tested on this host (Linux VMs were stopped/suspended).

Contributor checklist

  • I reviewed the complete diff and checked for mistakes.
  • I completed the applicable checks in CONTRIBUTING.md.

I used an AI agent (select exactly one):

  • I used an AI agent: yes
  • I used an AI agent: no

(This PR was made with an agent in partial or full capacity)

- Upgrade vampir (0.4.2), gpui-ce, notify 9, sha2 0.11, base64 0.23, ed25519-dalek 3, winreg 0.56; remove once_cell
- Reduce memory footprint and idle/background CPU wakeups (adaptive pump, 60s OS-watcher safety scan, event-driven raise listener, graph occlusion/viewport culling)
- Add right-click context menus, per-project Manage Versions pruner with before/after storage diff, Global version pruner, and Storage saver auto-pruner
- Rename Settings to Options across all 6 locales, add click-outside-to-close and Cmd/Ctrl+W window close with non-destructive overlay dismissal, and update wiki docs

Agent-Assisted: yes
Agent-Assisted: yes
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@404oops
404oops merged commit a89bb7d into main Dec 4, 2026
5 of 6 checks passed
@404oops
404oops deleted the feat/pruner-and-optimizations branch December 4, 2026 00:43
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.

2 participants