#534: diskcache: Your secret Python perf weapon
Talk Python To Me
Michael Kennedy
4.8 • 642 Ratings
🗓️ 13 January 2026
⏱️ 74 minutes
🧾️ Download transcript
Summary
Transcript
Click on a timestamp to play from that location
| 0:00.0 | Your cloud SSD is sitting there bored, and it would like a job. |
| 0:03.9 | Today we're putting into work with disk cache, a simple practical cache built on SQLite |
| 0:08.3 | that can speed things up without spinning up Redis or other extra servers. |
| 0:13.5 | Once you start to see what it can do, a universe of possibilities opens up. |
| 0:17.7 | We're joined by Vincent Warmerdome to dive into Discash. |
| 0:22.2 | This is Talk Python to Me, |
| 0:30.7 | episode 534 recorded December 19th, 2025. Talk Python to me. Yeah, we ready to roll. Upgrading the cold. No fear of getting old. They sink in the air. New frameworks in sight, geeky rap on deck. |
| 0:36.7 | Quark crew, it's time to unite. We started in pyramid. Cruising old school lanes. Had that stable base. Yes, sir. Welcome to Talk Python, the number one Python podcast for developers and data scientists. This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years. Let's connect on social media. You'll find me and |
| 0:56.3 | Talk Python on Macedon, Blue Sky, and X. The social links are all in your show notes. You can find |
| 1:02.0 | over 10 years of past episodes at TalkPython.fm, and if you want to be part of the show, you can join |
| 1:07.4 | our recording live streams. That's right, we live stream the raw, uncut of each episode on YouTube. Just visit talk python.fm slash YouTube to see the schedule of upcoming events. Be sure to subscribe there and press the bell. So you'll get notified anytime we're recording. Vincent, hello. Michael, Michael, we're back. Awesome. Awesome. We'll be back with you. Yeah. This is almost the sequel to the last time you were on the show. So it's going to be fun. Yeah, so SQL in this case, not the query language, like an actual sequel of events. Yes. Yeah, you can correct me if I'm wrong, but I think what happened is you had me on a podcast a while ago, |
| 1:45.3 | talk about a course that I made and a big chunk of the course that we were in very enthusiastic about was about this tool called Discash. And then we kind of came to the conclusion, well, we had to cap it off. Maybe it's fun to do an episode on just Discash, since we're both pretty huge fans of it. I think that's how we go here. |
| 2:00.9 | I think that is how we got here as well. |
| 2:02.7 | And we're going pretty huge fans of it. I think that's how we got here. I think that is how we got here as well. And we're going to dive into this pretty, honestly, it's a pretty simple library called Discash, but what it unlocks is really, really sweet. And then I'm going to talk about a lot of different angles. And now, even though it's just been not that long since you're on the show, |
| 2:18.0 | maybe just give us a quick intro of who you are. Hi, my name is Vincent. I've done a bunch of data machine learning stuff mainly in the past. That's sort of what a lot of people know me from. These days, though, I work for a company called Marimo. You might have heard from us. We make very modern Python notebooks. We took some lessons from Jupiter and we take a new spin of it. So that's my day to day. But I still like to write notebooks and do like kind of fun little benchmarks and also stuff with LMs. And I've just noticed that for a lot of that work, boy, disk cache is amazing. And I also use it for web stuff. And I think that's also what your use case is a little bit more of. But yeah, like in notebook land, you also like to have a very good caching mechanism. And on the Remo side of things, we are also working on different caching mechanisms, which I might talk about in a bit. But just for me, the bread and bother, the thing I've used for years at this point is disk cache whenever it comes to like that territory. Yeah, it's funny. This was recommended to me for Python Bites as a news item over there |
| 3:11.3 | quite a while ago, like years ago. And I'm like, oh, that's pretty interesting. And then I saw |
| 3:16.3 | you using it in the LLM Building Blocks course and it just it just unlocked from me like, oh my, |
| 3:21.3 | oh, this this is something else.. And so since I've been doing a |
| 3:25.5 | bunch with it, and I'm a big, big fan. I've been on this, like, trying to avoid complexity, |
| 3:31.0 | but still getting really cool responses, performance, et cetera, out of your apps. And I think |
| 3:36.0 | this, you know, this is a really nice way to add multiprocess super fast caching to your app without involving |
| 3:43.6 | more servers and more stuff that's got to get connected and keep running and so on. |
... |
Please login to see the full transcript.
Disclaimer: The podcast and artwork embedded on this page are from Michael Kennedy, and are the property of its owner and not affiliated with or endorsed by Tapesearch.
Generated transcripts are the property of Michael Kennedy and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.
Copyright © Tapesearch 2026.

