Python Memory Management and Tips Transcripts
Chapter: Welcome to the course
Lecture: Smaller and faster
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Now, when you think about memory management and making our code more memory efficient or
0:05
understanding how the garbage collector and reference counting works,
0:08
you might think this is to make our code use less memory. To make the memory
0:12
required smaller. But it also will have a side effect.
0:16
It will make our code faster.
0:18
Our code Python will have to do less garbage collection events, potentially is using less memory
0:24
so less swap space, maybe better cache management,
0:28
but also just some of the design patterns and some of the aspects of python that
0:32
are not frequently used but we're gonna bring into it will actually make our code quite
0:36
a bit faster for some really interesting use cases.
0:39
this is sort of a general performance thing with a concentrated focus on memory.