Speaker bigMan - Performance

Bob Arning arning at charm.net
Sat Aug 18 21:33:37 UTC 2001


Hi Phil,

On Sat, 18 Aug 2001 15:20:45 -0500 Phil Weichert <weichert at hal-pc.org> wrote:
>In the leaves section, a tremendous amount of time is lots in "hash" and
>process resume. I am rusty on hash.  Any practical suggestions on
>improving the performance of hash or any of the other parts.  I would
>like to heard bigMan Speaker speak at a normal tempo.

The #hash sends look to be largely the result of the code below:

>  |  |    |    20.7% {213ms} KlattVoice>>currentFramesCount:
>  |  |    |      20.7% {213ms} KlattSegment>>left:right:speed:pattern:
>  |  |    |        15.5% {160ms} KlattSegment>>slopeWith:selector:speed:
>  |  |    |          13.8% {142ms} Dictionary>>at:
>  |  |    |            13.8% {142ms} Dictionary>>at:ifAbsent:
>  |  |    |              12.1% {125ms} Dictionary(Set)>>findElementOrNil:
>  |  |    |                12.1% {125ms} Dictionary>>scanFor:
>  |  |    |                  8.6% {89ms} Symbol(SequenceableCollection)>>hash
>  |  |    |                    6.9% {71ms} primitives

Some changes in the last year made #hash a bit slower in order to get a better range of hash values. You might look at substituting a variant of Dictionary here that used a faster implementation of hash.

Cheers,
Bob





More information about the Squeak-dev mailing list