I'm sorry for the possible trivial question: in my project there are a lot of switch nodes which detect if the msg.paylod string is equal to certain coded frames. From the performance/speed point of view, is more efficient a switch node, or a function node containing just:
if (msg.payload === "foo") {
return msg;
}
return
??
Thanks