The post goes directly from <i>"heap allocations were frequent within rustc"</i> to <i>"effort to minimize heap allocations"</i>, and proceeds to detailing speedups.<p>→ Systems programming newbie question: why are heap allocations bad for performance? Is it the additional level of indirection? The cost of calling your memory allocator? Something else?<p>My background, if that helps focusing answers: python/js programmer, did a tiny bit of C/C++, am ~approximately~ familiar with the stack (call frames, each with its context) vs. the heap (where to allocate memory for big/long-lived objects e.g. arrays and trees).