Martin Heinz martinheinz.dev

Profiling and analyzing performance of Python programs  ↦

Martin Heinz on the tools/techniques for finding bottlenecks in your Python code. And fixing them, fast.

The first rule of optimization is to not do it. If you really have to though, then optimize where appropriate. Use the above profiling tools to find bottlenecks, so you don’t waste time optimizing some inconsequential piece of code. It’s also useful to create a reproducible benchmark for the piece of code you’re trying to optimize, so that you can measure the actual improvement.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00