You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Not at all, formatting and TLS macros already use unstable features in their implementation.
There was some work put into making this possible, we might as well make use of it.
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.The text was updated successfully, but these errors were encountered: