User Tools

Site Tools


python3:lru_cache

This is an old revision of the document!


LRU Cache

Memoization is a common optimization technique where repeatedly computed values are cached for quick lookup. While memoization can be achieved by a relatively simple modification to many recursive formulations, Python3's functools library implements automatic memoization in the form of an LRU (least recently used) cache.

python3/lru_cache.1541278921.txt.gz · Last modified: 2018/11/03 16:02 by jguerin