733 B
733 B
allowed-tools, description
| allowed-tools | description |
|---|---|
| Bash(du:*), Bash(wc:*) | Analyze and optimize code performance |
Context
- File size: !
du -h $ARGUMENTS 2>/dev/null || echo "File not specified" - Line count: !
wc -l $ARGUMENTS 2>/dev/null || echo "File not specified"
Your task
Analyze and optimize: @$ARGUMENTS
Focus areas:
- Algorithm efficiency: Improve time/space complexity
- Memory usage: Reduce memory footprint
- I/O operations: Optimize file/network operations
- Caching opportunities: Identify cacheable operations
- Lazy loading: Implement lazy loading where beneficial
- Bundle optimization: Reduce bundle size (if applicable)
Provide before/after comparisons and performance impact estimates.