Comfy-Org/ComfyUI

Create caching option that organizes cache based on loading times of cached values

Open

#8.367 geöffnet am 1. Juni 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (13.218 Forks)batch import
Featurehelp wanted

Repository-Metriken

Stars
 (112.952 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 8h) (164 gemergte PRs in 30 T)

Beschreibung

Feature Idea

Create a new caching algorithm/class that

  • scores each cached output on the basis of (1) time to load cold and (2) relative size of cached output compared with available system memory
  • arranges cached values in min- or max-heap such that the item being popped from cache is always the highest scored item

The effect is that we are more likely to pop items from the cache that take a small amount of time to load relative to their size.

Then expose that option via command line option, to exist alongside current options (lru, classic, no caching)

Existing Solutions

No response

Other

No response

Contributor Guide