Skip to content Skip to sidebar Skip to footer
Showing posts with the label Profiling

Optimizing For Pypy

(This is a follow-up to Statistical profiler for PyPy) I'm running some Python code under PyPy … Read more Optimizing For Pypy

Why Are __getitem__(key) And Get(key) Significantly Slower Than [key]?

It was my understanding that brackets were nothing more than a wrapper for __getitem__. Here is ho… Read more Why Are __getitem__(key) And Get(key) Significantly Slower Than [key]?

How To Obtain How Much Time Is Spent In F2py Wrappers

I am currently writing a time consuming python program and decided to rewrite part of the program i… Read more How To Obtain How Much Time Is Spent In F2py Wrappers

When Profiling Cython Code, What Is `stringsource`?

I have a heavy Cython function that I'm trying to optimize. I am profiling per this following … Read more When Profiling Cython Code, What Is `stringsource`?

Time Python Scripts Using Ipython Magic

How can I time the execution of a Python script using the iPython %time or %%timeit magic commands?… Read more Time Python Scripts Using Ipython Magic

Python Cprofile - Decorated Functions Obscuring Profile Visualization

I have a base class with a @classmethod which acts as a decorator for a large number of methods in … Read more Python Cprofile - Decorated Functions Obscuring Profile Visualization