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

Speeding Up Datetime.strptime

I am using the following piece of code to extract a date from a string: try: my_date = datetime… Read more Speeding Up Datetime.strptime

Calculating The Factorial Without Trailing Zeros Efficiently?

I'm trying to improve the running time of the factorial calculation of the large number. The fi… Read more Calculating The Factorial Without Trailing Zeros Efficiently?

Django / Wsgi - How To Profile Partial Request? My Profiling Tools Are Per-request But App Runs Out Of Memory Before Then

How can I profile my python / django application which is crashing on a single request after 100 se… Read more Django / Wsgi - How To Profile Partial Request? My Profiling Tools Are Per-request But App Runs Out Of Memory Before Then

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

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