[Pythonmac-SIG] Slow python initialization
Bob Ippolito
bob at redivi.com
Tue Dec 13 19:03:26 CET 2005
On Dec 13, 2005, at 9:38 AM, Bill Spotz wrote:
> I recently upgraded my dual-processor G5 from Mac OS X 10.3 to 10.4.
> Ever since, the python initialization has been extremely slow, maybe
> 10 seconds or so between issuing the "python" command and getting a
> prompt. I run some automated tests on this machine, and the delays
> can add up, dwarfing the actual execution time.
>
> The problem persists whether I:
> * Run python 2.4.2 (/sw/bin/python, compiled w/GCC 4.0.0) or
> 2.3.5 (/usr/bin/python, compiled w/GCC 3.3)
> * Run with or without a PYTHONSTARTUP file
> * Run under bash 3.00.0(1) (/sw/bin/bash) or 2.05b.0(1) (/bin/
> bash)
>
> Has anyone else seen this behavior? Or have a solution? (Similarly,
> although less related to this mailing list, when I try to use tab-
> completion under bash, I get a long delay as well.)
No, but I would profile it with Shark to see where it's spending
time. Or even just run it under gdb and break when it's stalling..
I'm guessing it's waiting on some kind of resource.
-bob
More information about the Pythonmac-SIG
mailing list