Adding loop primitives/optimizations
(was Making Set/Dictionaryetc. loops more robust)
Yoshiki Ohshima
Yoshiki.Ohshima at acm.org
Thu Dec 2 08:10:46 UTC 2004
John,
> A quick check with
> f := FloatArray new: 1000000 withAll: 1.0 .
> g := FloatArray new: 1000000 withAll: 2.0 .
> [100 timesRepeat: [f+=g]] timeToRun.
>
> using vadd(rcvrPtr,1,argPtr,1,rcvrPtr,1,length); //Is this legal?
>
> takes about 1765ms, versus 3802ms
Looks good. If you are willing to hack the KedamaPlugin, replace
a few vector ops with altivec, and run some simple Kedama example, it
should give you some noticable difference, (I hope.)
Thank you!
-- Yoshiki
More information about the Squeak-dev
mailing list
|