How to set cost on MemoryConfig? Does the totalCostLimit even work?
Aperta
- Lingua principale
- Swift
- Stelle
- 3.1k
- Fork
- 355
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
On 'MemoryStorage' class NSCache is created. How do I set the cost while adding the object? The totalCostLimit is passed to the NSCache eventually but since we cannot set the cost anywhere - will that serve any purpose?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reading the MemoryStorage class and its NSCache setup, focusing on how totalCostLimit is passed and whether inserted objects receive a cost. Determine whether the current behavior supports cost-based eviction and what observable behavior would confirm that the limit works.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- swift
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100