Set asArray method
Chris Muller
afunkyobject at yahoo.com
Mon Oct 17 16:23:42 UTC 2005
Also try the #bench method, which conveniently computes a "rate of execution"
in five seconds:
| set |
"fill set here with some objects"
....
[ set asArray ] bench "print-it"
> > I didn't actually do any measurements).
>
> Never just believe something - always measure. There's a profiler in
> Squeak, learn to use it. In your case, running:
>
> | set |
> "fill set here with some objects"
> ....
> TimeProfileBrowser onBlock: [ 100 timesRepeat: [set asArray]].
More information about the Squeak-dev
mailing list
|