[PD] get the values of an array as a list

Jack jack at rybn.org
Thu Jan 21 14:42:12 CET 2010


My little participation :)
A small modification of [list-tabdump] is 40% faster than the original
(avoiding to send everytime the new list from [list append] in [list]).
++

Jack



Le jeudi 21 janvier 2010 à 13:53 +0100, Roman Haefeli a écrit :
> Am 21.01.10 09:57 schrieb "William Brent" unter <william.brent at gmail.com>:
>  
> > But is there something in Pd-ext that does this?  There must be,
> > right?  An external is waaaaaaaay faster for long arrays.
> 
> An external will always be faster. However, the patching method still can be
> optimized a lot. [list-tabdump] copies the same data back and forth and the
> number-of-elemts/cputime ratio is not linear, but something like
> 'exponential' (please someone put here the correct term). Attached is a
> benchmark patch, that compares [tabdump], [list-tabdump] and a patched
> vanilla version, that has a linear ratio, which makes it a lot faster than
> [list-tabdump], especially with big arrays (though it is still 10 times
> slower than [tabdump]).
> 
> Roman
>   
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: list-tabdump2.pd
Type: text/x-puredata
Size: 1990 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100121/a9f146bd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tabdump_benchmarks.pd
Type: text/x-puredata
Size: 32354 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100121/a9f146bd/attachment-0001.bin>


More information about the Pd-list mailing list