10 ms·
Readability, reproducibility, and simple LRU. Reproducibility matters for tests, they become simpler. Some other algorithms become simpler as well. LRU is jus
by funny_falcon 2y ago
Readability, reproducibility, and simple LRU.
Reproducibility matters for tests, they become simpler. Some other algorithms become simpler as well.
LRU is just a dict with preserving order: on access just delete and insert again.