Skip to content

Parallel Execution of Independent Nodes #3538

@torealise

Description

@torealise

Can we implement parallel execution of independent nodes in ComfyUI to improve performance?

Description:

Allow nodes that do not depend on each other to run simultaneously. This can optimize resource usage and reduce processing time.

Examples:

Image Processing:

  • Node A: Loads Image 1, preprocesses it, and sends it to ControlNet.
  • Node B: Loads Image 2 and sends it to IPAdapter.
  • Node C: Segments Image 3.

All these operations can run in parallel.

Benefits:

  • Faster execution.
  • Better use of CPU/GPU resources.
  • More efficient handling of complex workflows.

If determining which nodes are independent is complex, this configuration could be set manually for each workflow.

Would it be possible to add this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions