filmov
tv
The Magic of LRU Cache (100 Days of Google Dev)
Показать описание
Here’s a common problem that I’m sure you’ve run into: It’s time to load a new bitmap for your apps’ social media stream, or whatever, but you're out of memory. You can’t load in the new bitmap, without first destroying one of the existing bitmaps already in memory. But, which one should you get rid of?
Well, as Colt McAnlis, points out, you could learn 60 years of history of Cache replacement algorithms; that’ll help.. or, you could just use Android’s LRUCache container.
This container keeps a list of objects, and ranks them based upon how many times they’ve been accessed. When it’s time to evict one of them (to make space for a new object) the LRUCache already knows which ones to get rid of. All done without you having to worry about any of it.
100 Days of Google Dev / 100 developer videos over 100 days / #GoogleDev100
Well, as Colt McAnlis, points out, you could learn 60 years of history of Cache replacement algorithms; that’ll help.. or, you could just use Android’s LRUCache container.
This container keeps a list of objects, and ranks them based upon how many times they’ve been accessed. When it’s time to evict one of them (to make space for a new object) the LRUCache already knows which ones to get rid of. All done without you having to worry about any of it.
100 Days of Google Dev / 100 developer videos over 100 days / #GoogleDev100
The Magic of LRU Cache (100 Days of Google Dev)
What is LRU cache in 10 minutes
How “lru_cache” Can Make Your Functions Over 100X FASTER In Python
don't lru_cache methods! (intermediate) anthony explains #382
What is LRU cache?
Array as Design Choice for LRU Cache
Implement LRU cache
Optimize your Python Code with LRU Cache Tutorial
LRU Cache in Java
146 LRU Cache
Design and implement methods of LRU Cache
Implement An LRU Cache - The LRU Cache Eviction Policy ('LRU Cache' on LeetCode)
LeetCode 146. LRU Cache (Algorithm Explained)
LRU Cache Neetcode150 Series: (43 of 150) Leetcode - Second Run
How can lru_cache #speed up expensive function calls? Unlock Python #speed with lru_cache Magic!
LRU Cache
Implementing LRU Cache - Common Interview problem - Leetcode
LRU Cache Walkthrough (Leetcode #146)
Python Tutorial - || Memoization || LRU Cache || Code Walk-through ||
lru_cache speed boost example with python and recursion
Why not cache everything?
LRU Cache
LRU Cache [Easy] - LeetCode Day 24 Challenge
Разбор задачи с интервью. Leetcode 146. LRU Cache
Комментарии