Explore the power of Python's @cache and lru_cache decorators from the functools library in this 18-minute video tutorial. Learn how to significantly improve your code's performance by saving millions of wasteful computations and resources using the Least Recently Used (LRU) cache. Discover concrete examples, performance comparisons, and practical applications of these powerful caching techniques to optimize your Python programs.
Overview
Syllabus
Python's 3.9 "@cache" (and lru_cache) is amazing!
Taught by
Samuel Chan