[Pythonmac-SIG] One last thing on the slow shell python
Alexandre Parenteau
alexp@strata.com
Tue, 16 Oct 2001 15:11:56 -0700
Victory !
I hope I found something interesting about Python being slow when
opening-up.
I noticed that if I do (prior to call PyMacInitialize) :
PyMacSchedParams scp;
PyMac_GetSchedParams(&scp);
scp.process_events = 0;
PyMac_SetSchedParams(&scp);
Then Python loads much faster.
I suspect GUSI to yield too much time to the system due to the multiple
calls to WaitNextEvent during start-up.
Could someone verify this statement and elaborate ? Jack ?
Alex.
>
> Recently, "David Pennell" <dpennell@guardnet.com> said:
>> I created a tcsh to call pyton -c 'pass' 100 times and 1000 times.
>>
>> Over the control of a simple $I = 999 line, the python -c 'pass' line
>> took 1.7 seconds, each execution - 100 executions took almost 3 minutes.
>
> Apple has a very nice new document (released last week, I think) on
> performance tuning OSX applications. There's an awesome set of tools
> available to do I/O call measurements, malloc traces and many more.
>
> Maybe someone can grab this and run the various tools on Python to see
> where it's losing the startup time?
> --
> Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
> Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
> www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>