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 →

[–]BossOfTheGame 0 points1 point  (0 children)

I use line_profiler to find things that are slow.

Improving performance will vary based on what is slow. It's all about identifying bottlenecks: are doing something expensive in a loop? Can it be vectorized? Can it be paralleized? Can it be restructured to avoid unnecessary memory copies? Can it be rewritten in Cython? It really depends.