Using functools.lru_cache on methods causes memory leaks. The cache is stored on the class (via the decorator), and every cached call stores a strong reference to self as part of the cache key. This ...
Does OPTFF have the fewest misses? How does FIFO compare to LRU? Within the 3 test files, OPTFF has the fewest misses. This makes sense due to OPTFF knowing the full future request sequence. It can ...