2 ms·
Make Python Run Faster
- incomingpain 4y agoSince 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.
- marcosfelt 4y agoFor visualizing profiles, I really like tuna: https://github.com/nschloe/tuna https://github.com/nschloe/tuna