[Pythonmac-SIG] One last thing on the slow shell python

Jack Jansen jack@oratrix.nl
Tue, 16 Oct 2001 23:11:02 +0200


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