News for hackers. Stuff that matters.
Re:Make Python Run Faster by incomingpain on Wednesday October 26, 2022 @12:54PM (#33346387)
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/

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.

There are no comments on this comment yet.