profiling and optimizing

Rita rmorgan466 at gmail.com
Tue Jul 31 08:13:04 EDT 2012


hello,

I recently inherented a large python process and everything is lovely. As a
learning experience I would like to optimize the code so I ran it thru the
profiler

python -m cProfile myscript.py

It seems majority of the time is taking in the deep copy but that seems to
come from a function (or functions) in the code. Is there a way to optimize
that? perhaps have a C implementation of the deep copy? Would that
be feasible?






-- 
--- Get your facts first, then you can distort them as you please.--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120731/37737bfd/attachment.html>


More information about the Python-list mailing list