Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: profiling and optimizing

Thread Tools

Re: profiling and optimizing

Chris Angelico
Posts: n/a
On Tue, Jul 31, 2012 at 10:13 PM, Rita <(E-Mail Removed)> wrote:
> 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?

Why is the program deep-copying things? Rather than making deepcopy
faster, consider doing it less.

Normally I would first ask: Does the program even NEED optimization?
Often the answer is no, because it's already fast enough - for
instance, if it spends all its time waiting for the internet, there's
little point reducing its CPU footprint. However, that point is moot
in this instance, since you're doing the profiling/optimization for
education rather than performance Have fun with it!

Chris Angelico
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: profiling and optimizing Peter Otten Python 0 07-31-2012 01:23 PM
Re: profiling and optimizing Stefan Behnel Python 0 07-31-2012 12:22 PM
Help in analysing and optimizing XML Data reading urgently (in the next weeks) required. Diplom Kaufmann Hinrichs - Siegert, Knut Computer Support 2 09-16-2007 10:39 PM
how to do synchronization profiling and RepaintManager and performance issues Dimitri Ognibene Java 0 04-25-2006 09:09 AM
Optimizing for Space and Time in Visual C++ Kapil Khosla C++ 2 07-18-2003 10:29 AM