Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@schneems
Last active May 17, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schneems/8616e179729b86b7296406bb0a5d6e68 to your computer and use it in GitHub Desktop.
Save schneems/8616e179729b86b7296406bb0a5d6e68 to your computer and use it in GitHub Desktop.

I have monitoring set up via Heroku on memory/response times/etc. So if something major happened, I would find out about it pretty quickly.

Other than that, I just attack things that are slow. If a thing gets reintroduced that is slow and if it shows up in my metrics, then I attack it. Otherwise if it's not the slowest thing, I don't focus on it.

A general awareness of best practices and code reviews can help prevent slow things from going back into the codebase.

Writing notes about why you did perf changes might help, but it's a double edge sword. I replaced lots of things in sprockets that had a comment like "did this because it's faster". Maybe if you do leave a note like that, link to a benchmark so future employees can see if it's still the fastest, or see what other things were tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment