Comfy-Org / Comfy-Org/ComfyUI_frontend

Change workflow performance

Open
#3,900 1 comment 0 reactions 0 assignees View on GitHub
area:dom-widgets area:litegraph area:ui area:widgets perf:memory perf:speed
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

Swapping ComfyUI tabs to large (e.g. 500 node) workflows has noticeable lag.

High impact: Zod, DOM Widgets, measureText (expandToFit).

1. Zod should probably not re-validate a workflow it has already validated - if the workflow gets corrupted by changing tabs... there are bigger problems.
2. DOM Widgets could be hidden instead of destroyed and recreated. Would require support for multiple open workflows.
3. measureText probably isn't worthwhile addressing yet,

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3900-Change-workflow-performance-1f46d73d36508125a2bafe30a4a17c9c) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.