Python Memory Management and Tips Transcripts
Chapter: Memory and classes
Lecture: Classes and memory introduction

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this chapter, we're going to focus on Python classes and how they consume memory,
0:05 and in particular some techniques that we can apply to make them more efficient.
0:09 And you'll see some of those techniques,
0:11 even, I'd say most these techniques, will make it not just more memory efficient,
0:15 but also CPU speed faster. So things happen quicker just on a pure computational side
0:21 as well as it's gonna use less memory.
0:23 That's like a double win, isn't it?
0:25 Everything we've learned so far about efficient data structures about functions and whatnot can layer on
0:30 top of what we're going to talk about here,
0:32 right? Functions can handle classes that can return them, internally the fields
0:36 can store things in arrays instead of lists or those sorts of things.
0:39 So think of this as just more goodness and more places
0:42 you could make your program more efficient and better.
0:45 So, let's dive in to classes.