What's the fastest ?

Guillaume Evrard's icon

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 ?

Max Patch
Copy patch and select New From Clipboard in Max.

thanks in advance for your opinion.

guillaume

Rui Caldas's icon

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."

Max Patch
Copy patch and select New From Clipboard in Max.

Guillaume Evrard's icon

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

g

Bas van der Graaff's icon

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:

Max Patch
Copy patch and select New From Clipboard in Max.

Guillaume Evrard's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

Emmanuel Jourdan's icon

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

Guillaume Evrard's icon

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