Talk Python To Me cover image

#380: 7 lessons from building a modern TUI framework

Talk Python To Me

The Memory Cost of Cashing Many Frequently Called Functions

2min Snip

00:00
Play full episode
Cashing is a kind of pure function. It doesn't depend on something that could change behind the scenes. There's no side of facts. You can write these functions. I've got an input in an output, and it dosn't depend on any other state. Amd, there's no hidden surprises. And elso i think makes your code more easy to read reason about. M, if your cods can use imutable objects, i think you should favor it.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode