diff options
| author | bors <bors@rust-lang.org> | 2024-01-09 20:52:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-09 20:52:34 +0000 |
| commit | 190f4c96116a3b59b7de4881cfec544be0246d84 (patch) | |
| tree | 3f25287a0c8a8d2c3c26fdbb3a2604b000a3e00b /library/std/src/sys/unix/os.rs | |
| parent | ae9d24de80b00b4158d1a29a212a6b02aeda0e75 (diff) | |
| parent | 5b041abc8cfae5076e9187e127945de113c92fed (diff) | |
| download | rust-190f4c96116a3b59b7de4881cfec544be0246d84.tar.gz rust-190f4c96116a3b59b7de4881cfec544be0246d84.zip | |
Auto merge of #116846 - krtab:slice_compare_no_memcmp_opt, r=the8472
A more efficient slice comparison implementation for T: !BytewiseEq (This is a follow up PR on #113654) This PR changes the implementation for `[T]` slice comparison when `T: !BytewiseEq`. The previous implementation using zip was not optimized properly by the compiler, which didn't leverage the fact that both length were equal. Performance improvements are for example 20% when testing that `[Some(0_u64); 4096].as_slice() == [Some(0_u64); 4096].as_slice()`.
Diffstat (limited to 'library/std/src/sys/unix/os.rs')
0 files changed, 0 insertions, 0 deletions
