This topic was automatically generated from Slack. You can find the original thread here.
Hello guys, quick question. Let’s say I have a couple javascript nodes lined up and I want to optimize the execution time of my workflow. Would it makes sense to regroup all the code in one node to speed up the workflow execution ?
It won’t make a significant difference in terms of performance (steps add a minimal performance overhead), but it will definitely reduce the memory consumption of your workflow (each step does use a non-negligible amount of memory).
The sweet spot is usually between 512MB - 1024MB for most simple workflows. Above that it’s just diminishing returns (you’re paying more for very little extra performance).