News for hackers. Stuff that matters.
Re:Python Practices for Efficient Code: Performance, Memory,... by dr_zoidberg on Friday August 18, 2017 @01:15PM (#15047987)
One of the best tools for profiling I've used with python is gprof2dot, which analizes cProfiles output and generates a function call-graph that gives deep insights as to what is really taking execution time.

It can help you see a lot clearer why things are slow. Though it has its nuissances, it significantly improves your understanding of where time is spent. It's the same data from cProfile, but much better organized.

That tool, combined with the line_profiler (kernprof) can work wonders.

Re:Python Practices for Efficient Code: Performance, Memory,... by cjbillington on Friday August 18, 2017 @02:06PM (#15048423)
I made a wrapper of cProfile and gprof2dot, which can be found here:

http://bprofile.readthedocs.io

so that you don't have to remember how to call gprof2dot all the time.

Re:Python Practices for Efficient Code: Performance, Memory,... by dr_zoidberg on Friday August 18, 2017 @02:29PM (#15048598)
Nice, it looks handy!