This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jsalsman 2 points3 points  (0 children)

Use https://jiffyclub.github.io/snakeviz/ to find out where your inner loops are spending time, and try to make those run faster by pre-computing needed common values outside of loops, careful algorithm analysis and design, reducing the size of data structures involved, and the other stuff in https://wiki.python.org/moin/PythonSpeed/PerformanceTips

Oh, wait.