[pygtk] Application running Slow (4,000 Lines of Code)
JUAN ERNESTO FLORES BELTRAN
juanernestof at hotmail.com
Thu Jun 8 23:09:44 WST 2006
Hi you all,
I am coding a pygtk/matplotlib/basemap application. Actually i have coded
4,000 lines and i consider 2,000 more lines will be required to finish my
application. The point is the application is becoming to slow.
I have done all the stuff required to optimize and minimize the code
required to perform tasks such as calculations and vector/array operations
which cause memory leak. Despite basemap and matplotlib are "heavy modules"
which consume machine resources most of the code (around 80% of the whole
program) is related to widgets, boxes, labels, buttons, notebooks, dialogs
and all the pygtk code the GUI requires.
I wonder how can improve the application performance??. I am thinking of
splitting into different modules which can be imported from the main script,
so the main script would load/run faster, and the rest of the code will be
located in modules wich code will be executed once the user clicks a button
or whenever required.
Can any one suggest any way to improve the program performance??
Thanks for your answers in advance
Juan
Regards.-
More information about the pygtk
mailing list