-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache initialization between each run is very slow when having many calls to folder_paths.get_filename_list
in INPUT_TYPES
#4882
Comments
Maybe @guill would be interested in this. |
After looking around a bit, looks like |
folder_paths.get_filename_list
in INPUT_TYPES
Nice find and thanks for the ping! I'll try to get this fixed by this weekend. |
This pull solved this issue for me: #4969 |
@Trung0246 I have updated to this commit id, but the problem still exists. |
Expected Behavior
The load time should be optimally fast before #2666. The problematic line is this:
ComfyUI/execution.py
Lines 474 to 476 in 9f4daca
Actual Behavior
Load time is very slow, as shown in log it took a whole minute (I have added debug code). Not tested on which kind of big O growth is here, maybe exponentially.
Steps to Reproduce
Have a decently large workflow with over >50 nodes. Can test with https://perilli.com/ai/comfyui/
Debug Logs
Other
Recorded by using
cProfile
and wrap around the problematic lines.The text was updated successfully, but these errors were encountered: