News for hackers. Stuff that matters.
Re:Hunting Performance in Python Code: Measuring Memory Cons... by mherrmann on Thursday June 01, 2017 @11:19AM (#14460982)
Interesting, but much more complex. I suppose it's more powerful as well as a reward. I've never had the need for such complexity though.
Re:Hunting Performance in Python Code: Measuring Memory Cons... by tempay on Thursday June 01, 2017 @02:24PM (#14462980)
Its implimentation is much more complex but I'd recommend trying it as it's trivial to use in practice: - Find a suspiciously slow function using cProfile - pip install line_profiler - Edit function to start with @profile - Run kernprof - Take a look at the output and act accordigly