1
Fork 0
rust/library/alloc/src
bors b573e10d21 Auto merge of #98553 - the8472:next_chunk_opt, r=Mark-Simulacrum
Optimized vec::IntoIter::next_chunk impl

```
x86_64v1, default
test vec::bench_next_chunk                               ... bench:         696 ns/iter (+/- 22)
x86_64v1, pr
test vec::bench_next_chunk                               ... bench:         309 ns/iter (+/- 4)

znver2, default
test vec::bench_next_chunk                               ... bench:      17,272 ns/iter (+/- 117)
znver2, pr
test vec::bench_next_chunk                               ... bench:         211 ns/iter (+/- 3)
```

On znver2 the default impl seems to be slow due to different inlining decisions. It goes through `core::array::iter_next_chunk`
which has a deep call tree.
2022-07-27 01:12:30 +00:00
..
alloc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
boxed Rollup merge of #98585 - cuviper:covariant-thinbox, r=thomcc 2022-07-01 20:19:17 +05:30
collections Add PhantomData marker for dropck to BTreeMap 2022-07-18 13:03:54 +02:00
ffi Stabilize core::ffi::CStr, alloc::ffi::CString, and friends 2022-07-15 03:10:35 -07:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
sync Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
vec Auto merge of #98553 - the8472:next_chunk_opt, r=Mark-Simulacrum 2022-07-27 01:12:30 +00:00
alloc.rs codegen: use new {re,de,}allocator annotations in llvm 2022-07-26 09:43:28 -04:00
borrow.rs Intra-doc-link-ify reference to Clone::clone_from 2022-07-08 22:47:07 +02:00
boxed.rs add #[must_use] to Box::from_raw 2022-07-15 17:05:50 +09:00
fmt.rs remove useless cold 2022-05-29 20:40:56 +01:00
lib.rs Auto merge of #98553 - the8472:next_chunk_opt, r=Mark-Simulacrum 2022-07-27 01:12:30 +00:00
macros.rs update cfg(bootstrap)s 2022-07-01 15:48:23 +02:00
raw_vec.rs alloc: fix no_global_oom_handling warnings 2022-06-29 04:44:23 +02:00
rc.rs Use byte_sub in [a]rc impl 2022-07-10 15:16:51 +04:00
slice.rs Borrow Vec<T, A> as [T] 2022-07-16 11:58:26 +02:00
str.rs additional docs example for replace **all** of str 2022-06-10 00:28:46 +08:00
string.rs Rollup merge of #98710 - mojave2:string, r=JohnTitor 2022-07-26 07:14:45 +09:00
sync.rs Use byte_sub in [a]rc impl 2022-07-10 15:16:51 +04:00
task.rs Document From implementations for Waker and RawWaker 2021-04-22 14:16:33 -07:00
tests.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00