Update the explanation for why we use box_new in vec!
This commit is contained in:
parent
7bb9888953
commit
6024a06dba
1 changed files with 2 additions and 2 deletions
|
|
@ -48,8 +48,8 @@ macro_rules! vec {
|
|||
);
|
||||
($($x:expr),+ $(,)?) => (
|
||||
<[_]>::into_vec(
|
||||
// Using the intrinsic produces a dramatic improvement in compile
|
||||
// time when constructing arrays with many elements.
|
||||
// Using the intrinsic produces a dramatic improvement in stack usage for
|
||||
// unoptimized programs using this code path to construct large Vecs.
|
||||
$crate::boxed::box_new([$($x),+])
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue