The current application architecture relies on several high-level dependencies (reqwest, tokio, dirs, winreg) that contribute significantly to binary bloat and idle memory overhead. Additionally, the event-driven system uses a polling-based message loop which introduces perceptible latency in UI interactions (Settings opening/closing) and resource transitions.
This issue tracks the migration to a "Pure Native" architecture to achieve a sub-600KB binary and instantaneous responsiveness.
Optimization Goals
1. Storage & Dependency Pruning
2. Memory (RAM) Efficiency
3. Responsiveness & Reliability
Technical Impact (Measured)
| Metric |
Before |
After |
Change |
| Binary Size |
~2,048 KB |
528 KB |
-74% |
| Idle RAM |
~4.5 MB |
~3.5 MB |
-22% |
| UI Latency |
100ms - 1s |
< 1ms |
Instant |
Notes
These changes ensure that PauseCat remains a professional-grade workstation utility that provides high-end visual effects (Gaussian blur, Glassmorphism) with the footprint of a legacy system tool.
The current application architecture relies on several high-level dependencies (
reqwest,tokio,dirs,winreg) that contribute significantly to binary bloat and idle memory overhead. Additionally, the event-driven system uses a polling-based message loop which introduces perceptible latency in UI interactions (Settings opening/closing) and resource transitions.This issue tracks the migration to a "Pure Native" architecture to achieve a sub-600KB binary and instantaneous responsiveness.
Optimization Goals
1. Storage & Dependency Pruning
reqwestandtokio(approx. 800KB saving).dirsandwinregcrates.lazy_staticwith standard libraryOnceLock.env_logger.2. Memory (RAM) Efficiency
SHCreateStreamOnFileExto stream media assets to WebView2 instead of loading full files into memory.3. Responsiveness & Reliability
PostThreadMessageWto wake the main message loop immediately when events occur, removing the 100ms-1s latency.Technical Impact (Measured)
Notes
These changes ensure that PauseCat remains a professional-grade workstation utility that provides high-end visual effects (Gaussian blur, Glassmorphism) with the footprint of a legacy system tool.