wxPython performance
Chris Liechti
cliechti at gmx.net
Sat Jun 1 15:54:18 EDT 2002
Andrei Kulakov <ak at silmarill.org> wrote in
news:slrnafhtdv.407.ak at ak.silmarill.org:
> In article <3CF8E382.3A44F0DA at engcorp.com>, Peter Hansen wrote:
>> Andrei Kulakov wrote:
>>>
>>> "hello world" type program from wxPython tutorial takes 6
>>> seconds to start on my cel 366 128mb system (running Debian). Is
...
> . if not too much trouble, could you please try this one
> (from wxpython tutorial)?
>
> from wxPython.wx import *
>
> class MyApp(wxApp):
> def OnInit(self):
> frame = wxFrame(NULL, -1, "Hello from wxPython")
> frame.Show(true)
> self.SetTopWindow(frame)
> return true
i changed this to "return false"
> app = MyApp(0)
> app.MainLoop()
(2nd time, P3-600 Win32)
$ time python news_wxspeedtest.py
OnInit returned FALSE, exiting...
...
real 0m1.382s
user 0m0.020s
sys 0m0.030s
here the slowest part is loading and initilaizing the interpreter.
i think wx windows slows loading down, especialy the first time, because
its loading the wx library. on win32 this is about 4MB.
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list