随笔分类 -  rust

false sharing in Rust
摘要:How to optimize the program below to run faster? use std::{thread, sync::Arc}; use std::sync::atomic::AtomicU64; struct Block { d1: AtomicU64, } fn wo 阅读全文

posted @ 2024-08-26 03:11 winter-loo 阅读(5) 评论(0) 推荐(0) 编辑

size of rust closure
摘要:principle https://doc.rust-lang.org/reference/types/closure.html?highlight=fnonce#closure-types demo 1 fn f<F : FnOnce() -> String> (g: F) { println!( 阅读全文

posted @ 2024-08-18 04:13 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示