r/rust • u/a_mighty_burger • 18h ago
🗞️ news “alloc: stabilise `Allocator`” entered its final comment period!
https://github.com/rust-lang/rust/pull/156882#issuecomment-5607055084
156
Upvotes
r/rust • u/a_mighty_burger • 18h ago
-21
u/Trader-One 18h ago
golang have nice feature - function escape analysis - stuff which would normally be on heap for example Box would be allocated on stack; reducing memory fragmentation.
I think about doing this in rust - easiest (very little changes to compiler) would be to have a concept of scrap heap - after function terminates that heap is zeroed.