hyperoslo / hyperoslo/Cache

existsObject not optimal

Aperta
#343 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Swift
Stelle
3.1k
Fork
355
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

hi
I discovered that existsObject is doing a lot (too much) to return just a Bool. It checks the entry, decodes the object, etc... So if I use the cache to store large images, it would decode an image just to confirm that it exists in the cache
Isn't there a less expensive way to check for the presence of an object in the cache ?

Matthieu

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Locate the existsObject entry point in the Cache repository and trace how it checks entries, decodes objects, and reports a Bool. Confirm the desired result with a large cached image: existence checks should avoid decoding while still returning whether the object is present; the issue names no file or test path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
swift
Ambito
backend
Tipo di issue
Refactoring
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
43/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.