profiling and optimizing

Rita rmorgan466 at
Tue Jul 31 14:13:04 CEST 2012


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

python -m cProfile

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: <>

More information about the Python-list mailing list