Forums > MaxMSP

What's the fastest ?

May 25, 2009 | 7:45 am

hi all !

i have data streams that allow subscriptions for receive names. what’s the fastest way to redirect the data to the subscribed receive ?

here are 2 solutions, i’m currently using the one with the message. i think it’s better than the forward solution but maybe i’m wrong. what do you think ? is there any better solution ?

– Pasted Max Patch, click to expand. –

thanks in advance for your opinion.

guillaume


May 25, 2009 | 10:10 am

Hi

You can count "how many time" passed in the two cases. It’s the best way to see if it’s faster!

The red objects are mine!

this will count how many time passes from the input number box to the output number box.

Mainobject: cpuclock

"…time values produced by the cpuclock object are referenced from the CPU clock and can be used to time real world events with microsecond precision."

– Pasted Max Patch, click to expand. –

May 25, 2009 | 10:40 am

thanks for the testing method !
the message solution seems to be more than 2 times faster than the forward one.

g


May 25, 2009 | 11:14 am

just using a normal [send] object seems to be faster still. The message isn’t supposed to redraw itself though? Tried a couple other ones:

– Pasted Max Patch, click to expand. –

May 25, 2009 | 12:16 pm

with multiple destinations, the first solution (message) is the fastest here.

what’s strange is that when i disconnect solution 2 to 6, solution 1 gets slower…

– Pasted Max Patch, click to expand. –

May 25, 2009 | 12:56 pm

If you really want to make some efficiency test, I would recommend using Apple’s Shark. With bigger process than sending just one value.


May 26, 2009 | 7:56 am

hi emmanuel,

i just downloaded the CHUD tools from ADC. but i can’t manage to launch shark. (icon is jumping in the dock but nothing more).

any idea ? i’ll look at the apple forums now…

g


Viewing 7 posts - 1 through 7 (of 7 total)