I am one of a large number of slow computer owners. With 1.7 GhZ and 1 GB or RAM on Windows XP, running my 50% fragmented laptop while Firefox 17.0.1 has a few pages/tabs open (and up to 600,000 KB of memory eaten), and a few other applications are open, can cause the computer to go into molasses mode, where windows switching becomes painfully slow.
In testing out a wxPython application, I just found that after it was sitting unused-by-me and sort of running in the background while I used other programs, like Firefox, and then I switched to it, the main frame was responsive but then when I did a user action that caused a wxDialog to be launched, it took about 20 seconds for the dialog to appear. Yuck. I then used and closed that dialog, did the same type of action again, and now the dialog popped up almost instantly. (I should note that I am launching the whole app via Boa Constructor, an IDE).
I think this super-slow vs. fast dialog appearance discrepancy may be related to the “warm boot” of applications, in that when you close a program down Windows doesn’t really vacate the RAM of that program but sort of keeps it handy in case you need it again soon, but if you wait too long that RAM has to get used for something else.
So, question #1: is that thinking right? Do the instructions for how to make a dialog “hang around” when recently used and therefore dialogs launch much more quickly, but the instructions “fade away” if you haven’t launched a dialog in a few hours and so have to be loaded from disk again?
Question #2: Is there anything I could do about this to prevent it? I know the real answer is that my computer is to blame, but I also know that the reality is that there are still a lot of people who have old/slow computers (and sometimes far worse than mine, since, AFAIK, I don’t have much or any malware). If there is something that can be done to increase “snappiness”, it makes a huge difference, in my case, to usability of the application.
I haven’t tested this issue out on a py2exe’d version of my app, but will.
(And yes, I should get a better computer, and will…but in a way, this one has some value as a good test case for older computers).
Thanks,
Che