News for hackers. Stuff that matters.
Re:How to speed up the Rust compiler some more by gcp on Wednesday November 23, 2016 @09:03AM (#13022672)
Aside from what the other reply said: heap allocations do incur management overhead and are prone to things like fragmentation. Stack allocation is literally a single add/sub micro-op.
Re:How to speed up the Rust compiler some more by Rusky on Wednesday November 23, 2016 @05:03PM (#13026130)
Further, all stack allocations for a frame can be coalesced into a single add/sub.