What's the fastest ?
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 ?
thanks in advance for your opinion.
guillaume
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."
thanks for the testing method !
the message solution seems to be more than 2 times faster than the forward one.
g
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:
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...
If you really want to make some efficiency test, I would recommend using Apple's Shark. With bigger process than sending just one value.
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