
#425: Memray: The endgame Python memory profiler
Talk Python To Me
00:00
How to Allocate Memory in a List
Memory has an exact record of what allocations happened when and in what order. We can build a new recording mode that most memory profilers could not do. This lets you figure out if there's places where you should be reserving a bigger list or a preallocating a vector. That's based on just this rich temporal data that we're able to collect, which is much easier than obviously reading your entire codeways for sure.
Transcript
Play full episode