How henrypp/memreduct works
Mem Reduct is a Windows desktop utility for monitoring memory use and reclaiming selected system memory. Users inspect usage in the main window or tray, then trigger cleanup manually or configure automatic cleanup based on usage and elapsed time. Cleanup targets include working sets, file caches, standby and modified lists, and newer Windows memory regions. A single substantial C source file contains the sampled application logic, so the graph separates its user interface, monitoring, cleanup, and settings responsibilities without implying separate modules. The README documents Native API cleanup; unsampled implementation details and framework wiring are omitted.
Main entry points: main.c Main window · i18n Locale resources
Components 12
User interaction
- Application startup
src/main.c - Main window
src/main.c - Tray controls
src/main.c - Settings dialogs
src/main.c
Memory management
- Memory monitoring
src/main.c - Auto-clean decisions
src/main.c - Memory cleanup
src/main.c
Configuration
- Runtime settings
src/main.c - Locale resources
bin/i18n
Other components
- User
- Windows memory system
- Application framework
Connections 16
- User → Application startup: launches
README.md - Application startup → Main window: opens
src/main.c - User → Main window: views
- User → Tray controls: controls
- User → Settings dialogs: configures
- Memory monitoring → Auto-clean decisions: checks thresholds
src/main.c - Auto-clean decisions → Memory cleanup: triggers
src/main.c - Memory monitoring → Windows memory system: reads usage
src/main.c - Memory cleanup → Windows memory system: reclaims memory
README.md - Main window → Memory monitoring: displays usage
src/main.c - Main window → Memory cleanup: requests cleanup
src/main.c - Tray controls → Memory cleanup: requests cleanup
src/main.c - Settings dialogs → Runtime settings: updates
src/main.c - Auto-clean decisions → Runtime settings: reads thresholds
src/main.c - Settings dialogs → Locale resources: uses translations
- Application startup → Application framework: uses framework