3 ms·
Since I'm a terrible developer, I expect the problem is never actually in performance of library or cpu. It's going to be in poor coding, so if you're like me..
by incomingpain 4y ago
Since I'm a terrible developer, I expect the problem is never actually in performance of library or cpu. It's going to be in poor coding, so if you're like me...
https://pypi.org/project/viztracer/ https://pypi.org/project/viztracer/
python3 viztracer my_script.py arg1 arg2
Then when you exit, it'll do some processing and tell you exactly the vizviewer command you need to run. It opens a webgui and you can drill in to see which of your functions are taking too long. Then you know what you need to optimize.