Y
Hacker News
new
|
ask
|
show
|
jobs
by
glandium
1311 days ago
Actually, you'll find that in Rust, Box::new(stuff) will too often put stuff on the stack before copying it in the newly allocated memory. For large enough stuff, that can be slower than the allocation.