Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2017-02-25.09:26:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488014818.45.0.347439137836.issue29645@psf.upfronthosting.co.za>
In-reply-to
Content
`import webbrowser` has heavy side effects. It searches a number of executables. On X Window it also runs external program xdg-settings.

Cold start:

$ time ./python -c ''

real	0m1.719s
user	0m0.088s
sys	0m0.036s

$ time ./python -c 'import webbrowser'

real	0m5.713s
user	0m0.308s
sys	0m0.196s

Hot start:

$ time ./python -c ''

real	0m0.094s
user	0m0.072s
sys	0m0.020s

$ time ./python -c 'import webbrowser'

real	0m1.026s
user	0m0.284s
sys	0m0.100s
History
Date User Action Args
2017-02-25 09:26:58serhiy.storchakasetrecipients: + serhiy.storchaka
2017-02-25 09:26:58serhiy.storchakasetmessageid: <1488014818.45.0.347439137836.issue29645@psf.upfronthosting.co.za>
2017-02-25 09:26:58serhiy.storchakalinkissue29645 messages
2017-02-25 09:26:57serhiy.storchakacreate