rust/library/alloc
Joshua Wong 97005678c3 reduce Box::default stack copies in debug mode
The `Box::new(T::default())` implementation of `Box::default` only
had two stack copies in debug mode, compared to the current version,
which has four. By avoiding creating any `MaybeUninit<T>`'s and just writing
`T` directly to the `Box` pointer, the stack usage in debug mode remains
the same as the old version.
2025-01-26 03:48:27 -05:00
..
benches update cfgs 2024-11-27 15:14:54 +00:00
src reduce Box::default stack copies in debug mode 2025-01-26 03:48:27 -05:00
tests Implement VecDeque::pop_front_if & VecDeque::pop_back_if 2025-01-22 20:04:36 +03:00
Cargo.toml Update compiler-builtins to 0.1.143 2025-01-15 04:02:19 +00:00