--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/0411f594-c2d9-4962-8826-ccff6ecd6f3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've always resisted doing something like this for a couple reasons:- it makes the message passing less efficient as the runtime now has to check every property and decide whether it should be cloned or not.
On 16 October 2017 at 08:19, 'Simon H' via Node-RED <node...@googlegroups.com> wrote:
More general I want 1 single output port to be wired to N input ports (speed, license plate recognition, motion detection, ...). And suppose I'm sure that none of these won't change my message data. Then it would be a big performance boost if I could avoid cloning.
But I'm pretty sure that Nick has good reasons to avoid this kind of things. Could imagine that the results could become weird if multiple nodes would change the same data in an unpredictable order??
And the nodes I'm using don't pass the original input message on an output port, so I cannot simply connect them in one large series. Or is that some design pattern that I missed during custom node development?
Bart
setTimeout(function(){node.send([msg]}, 0);
setTimeout(function(){node.send([null, msg]}, 0);
return;