Timers, Stepping, Co-routines, and Performance in Squeak.....
(was Re: Timers & Stepping)
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Mar 23 07:35:15 UTC 2000
> Dan Ingalls wrote:
> Faster Blts are always good, but there's still plenty of room for cleverness.
Mmm which minds me of my work in
copyLoopPixMap
"JMM 12/13/1999
breakout null colorMap & pixelsize to improve performance"
colorMap = nil
ifTrue:[self copyLoopPixMapNull]
ifFalse:
[sourcePixSize > 8
ifTrue:[self copyLoopPixMapNoNullGT8]
ifFalse: [self copyLoopPixMapNoNullLE8]]
The migration of the decision about colorMap and sourcePixSize out of the
inner loop. Plus of course lurking way down deep some interesting code of
the form:
sourcePix = cachedsourcePix ifTrue:
[destPix _ cacheddestPix]
ifFalse: ["lots of work"].
If Andreas can up for air from his H/W graphics works I'd better get
cracking and hand it off for due consideration.
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7 E94A EE69 2D21 46FC 3BE6
===========================================================================
More information about the Squeak-dev
mailing list
|