Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🏠 Back to Blog

Performance Mantras

This is a tuning methodology that shows how best to improve performance, listing actionable items in order from most to least effective.

  1. Don’t do it. (Eliminate unnecessary work)
  2. Do it, but don’t do it again. (caching)
  3. Do it less. (tune refreshes, polling, or updates to be less frequent)
  4. Do it later. (Write-back caching)
  5. Do it when they’re not looking. (schedule work to run off-peak hours)
  6. Do it concurrently. (switch from single to multi-threaded)
  7. Do it more cheaply. (buy faster hardware)

Credits to Scott Emmons @ Netflix