Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python's Cache and LRU Cache Decorators - Optimizing Computations

Samuel Chan via YouTube

Overview

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.

Syllabus

Python's 3.9 "@cache" (and lru_cache) is amazing!

Taught by

Samuel Chan

Reviews

Start your review of Python's Cache and LRU Cache Decorators - Optimizing Computations

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.