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
Reduce unnecessary reactive evaluations from preview composables in Vue graph nodes.
LGraphNode.vue currently instantiates both usePromotedPreviews and useAmbientSubgraphPreviews for every LGraphNode. For non-subgraph nodes, these composables short-circuit. However, preview output updates can still invalidate their computed state across all Vue nodes.
Rationale
Large workflows can contain 500 or more nodes but few subgraph nodes. A WebSocket preview frame can cause O(total nodes) short-circuit evaluations. The new ambient-preview path has the same subscription pattern as the existing promoted-preview path. Address both paths together in a dedicated performance change.
Summary
Reduce unnecessary reactive evaluations from preview composables in Vue graph nodes.
LGraphNode.vuecurrently instantiates bothusePromotedPreviewsanduseAmbientSubgraphPreviewsfor everyLGraphNode. For non-subgraph nodes, these composables short-circuit. However, preview output updates can still invalidate their computed state across all Vue nodes.Rationale
Large workflows can contain 500 or more nodes but few subgraph nodes. A WebSocket preview frame can cause O(total nodes) short-circuit evaluations. The new ambient-preview path has the same subscription pattern as the existing promoted-preview path. Address both paths together in a dedicated performance change.
Affected areas
src/renderer/extensions/vueNodes/components/LGraphNode.vueusePromotedPreviewsuseAmbientSubgraphPreviewsRequired changes
LGraphNodeinstances from subscribing to preview-output changes.SubgraphNodeinstances.Acceptance criteria
Backlinks