Perf(cnr): optimize ComfyRegistry loading using server-time incremental caching.

This commit is contained in:
craftingmod
2026-06-30 06:07:52 +09:00
parent edcfb6a35a
commit fb822c6f24
3 changed files with 159 additions and 77 deletions
+1 -1
View File
@@ -811,7 +811,7 @@ class UnifiedManager:
dont_wait = True
# reload 'cnr_map' and 'repo_cnr_map'
cnrs = await cnr_utils.get_cnr_data(cache_mode=cache_mode=='cache', dont_wait=dont_wait)
cnrs = await cnr_utils.get_cnr_data(sync_mode=cache_mode, dont_wait=dont_wait)
for x in cnrs:
self.cnr_map[x['id']] = x