[Pythonmac-SIG] MacPython 2.2.2 multiprocessor slowdown

Jack Jansen Jack.Jansen@cwi.nl
Tue, 5 Nov 2002 11:46:17 +0100


I tried Neil's script on a uniprocessor, and I don't see such drastic 
times, but still stat() can take a long time:
0.01 Sap-extra:Users:jack:Desktop:
0.01 Sap-extra:Applications:Python 2.2.2
0.02 Sap-extra:Applications:Python 2.2.2:Mac:Lib
0.02 Sap-extra:Applications:Python 2.2.2:Mac:Lib:lib-compat
0.00 Sap-extra:Applications:Python 2.2.2:Mac:Lib:lib-scriptpackages
0.01 Sap-extra:Applications:Python 2.2.2:Lib:lib-dynload
0.11 Sap-extra:Applications:Python 2.2.2:Lib
0.01 Sap-extra:Applications:Python 2.2.2:Extensions:img:Mac
0.00 Sap-extra:Applications:Python 2.2.2:Extensions:img:Lib
0.01 Sap-extra:Applications:Python 2.2.2:Extensions:Imaging
0.01 Sap-extra:Applications:Python 2.2.2:Lib:lib-tk
0.00 Sap-extra:Applications:Python 2.2.2:Lib:site-packages
0.01 Sap-extra:Applications:Python 2.2.2:lib:site-packages:Numeric

At least, I think that .1 second for an os.stat() call is rather a long 
time...

I also tried the test script with with the Carbon PythonInterpreter 
running under classic, and I tried it with the classic interpreter. All 
three results were more or less the same. As a sanity check I tried it 
with the unix interpreter, and of course there all times were 0.00 
seconds.

Maybe someone with a multiprocessor can try the timing script with both 
the carbon and the classic interpreter running under the classic 
environment?
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma 
Goldman -