Comfy-Org / Comfy-Org/ComfyUI

Large model library causes very slow startup

Open
#11,211 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

I am experiencing longer and longer startup times in ComfyUI as the number of models in the extra paths grow. Tested on a completely fresh install with only the extra paths changed (no custom nodes installed). With a few hundred models startup is already much slower than without. I have tens of thousands of models in my full library and it doesn't seem feasible to add them all to the paths at this rate.

I'm not sure what part of ComfyUI is causing this issue, but it would be much appreciated if something could be done so that large model libraries are possible without crippling load times.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Reproduce startup on a fresh install with extra paths containing a few hundred and then tens of thousands of models, and identify what scales poorly. Done means large model libraries no longer make startup impractically slow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.