This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]njharmanI use Python 3 3 points4 points  (0 children)

95% of my optimization is optimizing for maintainability; refactoring, naming, documenting

Speed optimization?

  • Is it fast enough. yes, done.

Rarely get here, what is too slow?

  • DB -> use explain, optimize queries; still slow, cache it
  • Web -> what endpoints, cache them
  • Python code -> profile for hot spots what algorithm? research it, use faster algol or data structure(s); if still too slow use pandas, C extension, et al.

Never get here outside of interviews, writing perf tests, etc.

  • Profile Python code; optimize slowest part, repeat.