Closed
Description
There's no reason to have the potentially unoptimizable inefficiency in vec!
.
It's impossible to reoder side-effects (which is why we want placement syntax), so vec![expressions, containing, side, effects]
will end up in a copy from the stack to the heap.
I guess it's not as bad as I thought given that vec![x; N]
goes through a more optimal route so you can't cause a stack overflow with it.
Metadata
Metadata
Assignees
Labels
No labels