Python Memory Management and Tips Transcripts
Chapter: Memory and classes
Lecture: Classes and memory introduction
0:00 In this chapter, we're going to focus on Python classes and how they consume memory,
0:06 and in particular some techniques that we can apply to make them more efficient. And you'll see some of those techniques,
0:12 even, I'd say most these techniques, will make it not just more memory efficient,
0:16 but also CPU speed faster. So things happen quicker just on a pure computational side as well as it's gonna use less memory.
0:24 That's like a double win, isn't it? Everything we've learned so far about efficient data structures about functions and whatnot can layer on
0:31 top of what we're going to talk about here, right? Functions can handle classes that can return them, internally the fields
0:37 can store things in arrays instead of lists or those sorts of things. So think of this as just more goodness and more places
0:43 you could make your program more efficient and better. So, let's dive in to classes.