Computer Program Efficiency Optimizing Best Practice.
Why Do?
- High impact, High value if fixed.
- Valid, Required functionality
- We can set reasonable efficiency
- Nothing more important
Rules
- Reduce
- Reuse
- Recycle
How
- Test
- Fix
- Benchmark
- Optimize
Memorize Common Patterns
- Pre-allocations
- Array reuse
- Caching
- Signleflight
- Locking
- ...