Performance optimization tools

To Nha Notes | Aug. 26, 2021, 6:11 p.m.

As a good starting point on performance optimization tools, I suggest that you:

  1. Log key inputs and outputs, and the elapsed time of key actions, using Eliot or some other logging library.
  2. Use Pyinstrument—or another sampling profiler—as your default profiler.
  3. Use cProfile when if you need a custom profiler.

References:

https://pythonspeed.com/articles/beyond-cprofile/

https://www.infoworld.com/article/3600993/6-stellar-libraries-for-profiling-python-code.html