MacOSX Performance

John M McIntosh johnmci at smalltalkconsulting.com
Mon Jan 24 21:07:07 UTC 2005


On Jan 24, 2005, at 12:39 PM, Karsten Wolf wrote:

>
> Am 24.01.2005 um 19:51 schrieb John M McIntosh:
>
>> d) Flushing every 1/60? of a second to ensure an pending updates are  
>> flushed.
> Where did you plug that in?

There is a timer based callback that is invoked every 1/60 of a second  
to grab the current millisecond clock to
update the low resolution msclock. This increases performance a few %  
since we avoid building ms from the nanosecond clock
1000+ times per second.

See MyTimerProc()
in sqMacTime.c

The SetupTimers() calls an ancient routine NewTimerUPP() to do this.  
That under os-x resolves to a timer thread firing every 1/60 of second.
I'm not sure yet where/what to change because this routine runs on a  
different pthread than ioShowDisplay()

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Squeak-dev mailing list