Numeric GUI bottleneck

Posted by Physic on Stack Overflow See other posts from Stack Overflow or by Physic
Published on 2011-03-11T23:49:49Z Indexed on 2011/03/12 0:10 UTC
Read the original article Hit count: 131

Filed under:
|
|
|

Hi all,

I've made a GUI to set up and start a numerical integrator using PyQT4, Wing, QT, and Python 2.6.6, on my Mac. The thing is, when I run the integrator form the GUI, it takes very many times longer than when I crudely run the integrator from the command line.

As an example, a 1000 year integration took 98 seconds on the command line and ~570 seconds from the GUI.

In the GUI, the integration runs from a thread and then returns. It uses a a queue to communicate back to the GUI.

Does anyone have any ideas as to where the bottleneck is? I suspect that others may be experiencing something like this just on a smaller scale.

t = threading.Thread( target=self.threadsafe_start_thread, args=( self.queue, self.selected ) )
t.start()

Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about qt