Adding loop primitives/optimizations (was Making Set/Dictionaryetc. loops more robust)

John M McIntosh johnmci at smalltalkconsulting.com
Thu Dec 2 07:57:03 UTC 2004


On Dec 1, 2004, at 10:44 PM, John M McIntosh wrote:
> Over the weekend I'll take a peek and generate some uptodate numbers  
> based on some of your simple examples here.
>
>
> http://developer.apple.com/hardware/ve/vector_libraries.html

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

--
======================================================================== 
===
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