Look at the algorithms and see if there are faster ways. Great advice with the
comments of writing test cases, getting into version control, taking passes
through the code with tools, understanding what is slow and why it is
considered slow. Then you should invest the time to understand the
when I do profiling is it possible to find out if I am spending a lot of
time in type conversion?
it seems I am not. Also, is it possible to predeclare a type in python?
Similar to C: int i=0;
On Sat, Feb 15, 2014 at 10:06 PM, Rustom Mody rustompm...@gmail.com wrote:
On Sunday, February 16,
On Sun, Feb 16, 2014 at 11:59 PM, Rita rmorgan...@gmail.com wrote:
when I do profiling is it possible to find out if I am spending a lot of
time in type conversion?
it seems I am not.
I would guess that you don't. But in Python, type conversion is like
any other function call:
value =
hi all,
i just inherited a large python code base and I would like to optimize the
code (run faster). The application is a scientific application so I really
don't understand the internal logic.
Here is what I have done so far, profile (cProfile) and was able to see
where the code was taking the
On 15/02/2014 17:10, Rita wrote:
hi all,
i just inherited a large python code base and I would like to optimize
the code (run faster). The application is a scientific application so I
really don't understand the internal logic.
Here is what I have done so far, profile (cProfile) and was able
, February 15, 2014 12:10:33 PM
Subject: inheriting a large python code base
hi all,
i just inherited a large python code base and I would like to optimize the code
(run faster). The application is a scientific application so I really don't
understand the internal logic.
Here is what I have done
On 15Feb2014 12:10, Rita rmorgan...@gmail.com wrote:
i just inherited a large python code base and I would like to optimize the
code (run faster). The application is a scientific application so I really
don't understand the internal logic.
[...]
One thing I would keep in mind is that
In article mailman.7028.1392505094.18130.python-l...@python.org,
Cameron Simpson c...@zip.com.au wrote:
On 15Feb2014 12:10, Rita rmorgan...@gmail.com wrote:
i just inherited a large python code base and I would like to optimize the
code (run faster). The application is a scientific
On Sunday, February 16, 2014 4:45:04 AM UTC+5:30, Roy Smith wrote:
In article Cameron Simpson wrote:
On 15Feb2014 12:10, Rita wrote:
i just inherited a large python code base and I would like to optimize the
code (run faster). The application is a scientific application so I really