[Pythonmac-SIG] Re: MacPython 2.2.2 final candidate

Alexandre Parenteau aparente@adobe.com
Thu, 31 Oct 2002 00:00:32 -0800


Hi Jack,

I cannot be sure for OS9 since I'm not a regular user. To your request I
booted OS9 and started the interpreter : it looks fine, faster too
(although it is less sensible compared to OSX speed up), and I believe
the yielding is still honorable (I can switch application, do other
things, while running autotest).

A regular OS9 user should be able to tell more.

alex

-----Original Message-----
From: pythonmac-sig-admin@python.org
[mailto:pythonmac-sig-admin@python.org] On Behalf Of Jack Jansen
Sent: Wednesday, October 30, 2002 1:52 PM
To: Alexandre Parenteau
Cc: Chris Barker; Neil Mayhew; MacPython
Subject: Re: [Pythonmac-SIG] Re: MacPython 2.2.2 final candidate


Alexandre,
have you tried this on older, slower (OS9?) machines too? If it 
works reasonably there as well I'll just drop this in (albeit 
for MacPython 2.2.3, 2.2.2 is finished).
Otherwise the fix would become more cumbersome: I think we would 
have to use 1 on OSX and 6 on OS9 or somesuch.

On woensdag, oktober 30, 2002, at 08:05 , Alexandre Parenteau wrote:

> Hi Chris,
>
> I have the same problem on OSX SMP, so here is what I do
> (gusiconfig.cpp) :
>
> static void
> PyMac_GUSISpin(bool wait)
> {
>     static Boolean    inForeground = true;
> //    int        maxsleep = 6;    /* 6 ticks is "normal" sleeptime */
>     int        maxsleep = 1;    /* 6 is to slooooow on OSX SMP */
>
>     if (PyMac_ConsoleIsDead) return;
>
>     if ( !wait )
>         maxsleep = 0;
>
>     PyMac_DoYield(maxsleep, 0); /* XXXX or is it safe to call
> python here?
> */
> }
>
> I changed maxsleep to 1 and it works much better for me. I've
> been running
> this for 1 year or so.
>
> I think the fundamental problem is GUSI yielding too much on OSX.
>
> Alex.
>
>> Neil Mayhew wrote:
>>> I tried 2.2.2 on my dual-processor G4 today and re-encountered
>>> the strange
>>> slowdown that I reported before, when starting any of the Python
apps
>>> (EditPreferences, PythonInterpreter and Python IDE).
>>
>> Can you give me a little more detail on what the problem is, so I can

>> test it out on my dual G4 as well?
>>
>> -Chris
>
> --
> Alexandre Parenteau
> Computer Scientist
> Core Technologies, AGM
> Adobe Systems, Inc.
> 408-536-6166
>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org 
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
--
- 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 -


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig