Implement FIFO and LRU caches through a Map memory limit
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with the Concurrent::Map entry point and review the issue discussion for a decision on scope. Clarify whether max_bytesize should support FIFO, LRU, or both, and define how size and access behavior are measured before implementation; the issue does not yet specify complete done criteria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I would like to allow a max_bytesize to be set for a Concurrent::Map, which would stop the combination of the map and its entries from getting any bigger by automatically deleting entries when a new one is added. Deletion of the oldest entry is easy through Hash#shift. New entries would automatically make a FIFO cache, while an LRU cache would need each accessed entry to be deleted and re-added.
Is this something worth working up a PR for? If so, does anyone have any suggestions on what to do and what not to do?
- Lingua principale
- Ruby
- Stelle
- 5.8k
- Fork
- 420
- Merge medio
- 20h 45m
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ruby-concurrency/concurrent-ruby
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
ruby-concurrency/concurrent-ruby#1118 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ruby-concurrency/concurrent-ruby#1099 · 9 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ruby-concurrency/concurrent-ruby#1093 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
ruby-concurrency/concurrent-ruby#1091 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
ruby-concurrency/concurrent-ruby#1072 · 1 reazione ·
Tutte le issue di ruby-concurrency/concurrent-ruby
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
バグ
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Version bump for OpenVox 9 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voxpupuli/puppet-epel#186 · 1 commento ·