You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a large number of nodes in the Node-RED Web UI, forced reflow occurs, leading to performance degradation.
Descend to around ten frames per second
Expected Behavior
The Node-RED Web UI should maintain optimal performance even with a large number of nodes.
Steps To Reproduce
Create a Node-RED flow with a large number of nodes.
Drag a line from the right end of one node.
Observe the performance degradation in the Web UI.
demonstrate.mp4
Example flow
Copy the following nodes approximately 20 times. Because I actually have a flow containing 800 nodes
I have encountered a real project where a single flow contains 782 nodes. Comparatively, when observing the performance using Chrome DevTools, the "Performance" tab indicates a significant increase in frame time, from around 6.1ms to approximately 100ms, in comparison to a flow containing only one node.
During mouse drag operations within the flow, it has been observed that there are over four thousand layout recalculations per frame, which are adversely impacted by Forced Reflows.
Given these observations, I am interested in exploring potential optimization strategies.
fullmooooon
changed the title
Node-RED Web SVG UI Performance Degradation Due to Forced Reflow with Large Number of Nodes
node-red web SVG UI performance degradation due to forced reflow with large number of nodes
Feb 8, 2024
Current Behavior
When there is a large number of nodes in the Node-RED Web UI, forced reflow occurs, leading to performance degradation.
Descend to around ten frames per second
Expected Behavior
The Node-RED Web UI should maintain optimal performance even with a large number of nodes.
Steps To Reproduce
Create a Node-RED flow with a large number of nodes.
Drag a line from the right end of one node.
Observe the performance degradation in the Web UI.
demonstrate.mp4
Example flow
Copy the following nodes approximately 20 times. Because I actually have a flow containing 800 nodes
Environment
The text was updated successfully, but these errors were encountered: