Cache initialization between each run is very slow when having many calls to folder_paths.get_filename_list
in INPUT_TYPES
#4882
Labels
Potential Bug
User is reporting a bug. This should be tested.
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: