Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26304 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2012-07-31 22:21 +1000 |
| Last post | 2012-07-31 22:21 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: profiling and optimizing Chris Angelico <rosuav@gmail.com> - 2012-07-31 22:21 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2012-07-31 22:21 +1000 |
| Subject | Re: profiling and optimizing |
| Message-ID | <mailman.2770.1343737272.4697.python-list@python.org> |
On Tue, Jul 31, 2012 at 10:13 PM, Rita <rmorgan466@gmail.com> 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
Back to top | Article view | comp.lang.python
csiph-web