diff options
| author | bors <bors@rust-lang.org> | 2022-04-15 23:15:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-15 23:15:51 +0000 |
| commit | bb1a03c4fcbe547168fab128fa39b08d1122a1c2 (patch) | |
| tree | 49856ac6e614484fd3439be2f5fd372d650a0b78 /library/std/src/sys/unix/stdio.rs | |
| parent | 3f391b84552f210adec7893b50c5da74f9362ae4 (diff) | |
| parent | 8d14c03568d0ec99c586e17ce19a93cc0684ab9e (diff) | |
| download | rust-bb1a03c4fcbe547168fab128fa39b08d1122a1c2.tar.gz rust-bb1a03c4fcbe547168fab128fa39b08d1122a1c2.zip | |
Auto merge of #95224 - mjbshaw:patch-1, r=yaahc
Optimize RcInnerPtr::inc_strong()/inc_weak() instruction count Inspired by this internals thread: https://internals.rust-lang.org/t/rc-optimization-on-64-bit-targets/16362 [The generated assembly is a bit smaller](https://rust.godbolt.org/z/TeTnf6144) and is a more efficient usage of the CPU's instruction cache. `unlikely` doesn't impact any of the small artificial tests I've done, but I've included it in case it might help more complex scenarios when this is inlined.
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions
