-
How much expensive is Arc vs Rc? Arc의 Cost는 얼마나 많은 Cost를 지불하는지 에 대한 논문코딩Coding/Rust❤️Optimization❤️ 2022. 9. 25. 04:46728x90
https://users.rust-lang.org/t/how-much-expensive-is-arc-vs-rc/48756
How much expensive is Arc vs Rc?
We know that because Rc does not need to be thread safe and Arc needs to be thread safe, Arc needs to use concurrent primitives and thus is in theory more expensive. However, I believe most modern CPUs have atomic cmp/swap, atomic inc, or atomic dec. Thus,
users.rust-lang.org
atomic-bench.pdf0.81MB
반응형'코딩Coding > Rust❤️Optimization❤️' 카테고리의 다른 글
cargo bench보다 좋은거? gnuplot & plotters (0) 2022.10.20 러스트 수학 속도비교(glam, cgmath, nalgebra, euclid, vek,pathfinder, static-math, ultra.. (0) 2022.10.20 cargo size ❤️사용법_LLVM tools shipped with the Rust toolchain (0) 2022.09.29 Rust 1.66 nightly 기능❤️Box::assume_init 성능향상 기능 (0) 2022.09.26 Rust❤️Impl trait initiative❤️eBook (0) 2022.09.23 Rust❤️<u32 as m::Foo>::foo(&x);__Trait function내가 원하는거 강제로 가지고 오기 (0) 2022.09.11 Make your Rust Binaries TINY! (0) 2022.09.06 6. Multicore Programming | MIT OpenCourseWare (0) 2022.08.28