Performance Mantras
This is a tuning methodology that shows how best to improve performance, listing actionable items in order from most to least effective.
- Don’t do it. (Eliminate unnecessary work)
- Do it, but don’t do it again. (caching)
- Do it less. (tune refreshes, polling, or updates to be less frequent)
- Do it later. (Write-back caching)
- Do it when they’re not looking. (schedule work to run off-peak hours)
- Do it concurrently. (switch from single to multi-threaded)
- Do it more cheaply. (buy faster hardware)
Credits to Scott Emmons @ Netflix