3 ms·
It's just one more line - wrapping the function with the memoization decorator from the stdlib: http://docs.python.org/3/library/functools.html#functools.lru_c
by doctoboggan 13y ago
It's just one more line - wrapping the function with the memoization decorator from the stdlib:
http://docs.python.org/3/library/functools.html#functools.lru_cache http://docs.python.org/3/library/functools.html#functools.lr...
- panzi 13y agoAnd it's much clearer on what it actually does.