You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance docker system prune performance via concurrent pruning
Refactored the runPrune function to execute pruning operations concurrently:
- Added sync.WaitGroup to orchestrate goroutines
- Used sync/atomic for thread-safe space reclaimed counter
- Added mutex for safe slice operations (outputs and errors)
- Maintained the same CLI behavior with improved performance
- Order of outputs may differ from sequential execution
This change significantly improves performance of the prune command,
especially for systems with many Docker resources by executing
independent pruning operations in parallel.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments