Running slower in win2k Tkinter

Robin Becker robin at jessikat.fsnet.co.uk
Tue Jun 26 11:30:54 EDT 2001


In article <$HBeGIALtDO7EwzP at jessikat.fsnet.co.uk>, Robin Becker
<robin at jessikat.fsnet.co.uk> writes
>I have a Tkinter app that needs to run a search over a set of packages.
>Basically the search imports all the modules finds all objects and sorts
>into a set of dictionaries. There is no interaction with tk, but when
>run in the tk app the search takes 5-6 times longer than when run
>directly without the tk windows. The Tkinter app isn't threaded and
>appears fully blocked while the computation takes place.
>
>I expect some slowdown in Tkinter as it must respond to messages etc,
>but the difference 1.51" vs 10.72" seems way too large.
>
>What am I missing?
OK ifigured out that Pmw has a 'loader' that dramatically slows down
importing and that causes my problem. The fix is to temporarily remove
the 'loader', do the work and then restore it.
-- 
Robin Becker



More information about the Python-list mailing list