I am trying to define a function that contains an inner loop for simulating an integral.
The problem is speed. Evaluating the function once can take up to 30 seconds on
Will a profiler help you figure out which part is slow? I like to run programs using the standard library profiler:
python -O -m cProfile -o profile.out MYAPP.py
and then view the output from that in the 'RunSnakeRun' GUI:
runsnake profile.out
A RunSnakeRun can be installed from here: http://www.vrplumber.com/programming/runsnakerun/