[PD] array copy speed test
Hans-Christoph Steiner
hans at eds.org
Mon Jul 31 23:15:13 CEST 2006
On Jul 31, 2006, at 4:47 PM, Frank Barknecht wrote:
> Hallo,
> Enrique Erne hat gesagt: // Enrique Erne wrote:
>
>>> So I did a little speed test between C and Pd for doing an
>>> array-to-array copying. Pd didn't fair so well. Can anyone
>>> thing of
>>> a better algorithm for copying in Pd?
>>>
>>> .hc
>>>
>>
>> added zexy/tabdump and zexy/tabset to copy the array, but it
>> arraycopy
>> is much faster.
>
> And I added an alternative version of writing values to an array
> inside Pd by just sending "index value(s)" lists to the array name.
>
> Interestingly this is a little bit faster than using [tabwrite]. It
> maybe could be made even faster by writing more than one value in one
> go.
Now that I think about it, how much with SIMD/altivec help to speed
up the Pd internals for something like this? That would be very nice
indeed.
.hc
More information about the Pd-list
mailing list