From a8b001ae5d499b3893beb6cf128334ce01624648 Mon Sep 17 00:00:00 2001 From: sunface Date: Sat, 22 Jan 2022 11:32:58 +0800 Subject: [PATCH] update readme.md --- README.md | 2 +- book/contents/async/multi-futures-simultaneous.md | 2 +- book/contents/performance/intro.md | 5 ++++- book/contents/performance/runtime-check.md | 4 +++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9261e33f..44d2c205 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Rust 语言圣经 (The course) +# Rust语言圣经 (The Course) - 在线阅读 diff --git a/book/contents/async/multi-futures-simultaneous.md b/book/contents/async/multi-futures-simultaneous.md index dd440322..f488fd42 100644 --- a/book/contents/async/multi-futures-simultaneous.md +++ b/book/contents/async/multi-futures-simultaneous.md @@ -1,4 +1,4 @@ -# 同时运行多个Future +# 使用`join!`和`select!`同时运行多个Future 招数单一,杀伤力惊人,说的就是 `.await` ,但是光用它,还真做不到一招鲜吃遍天。比如我们该如何同时运行多个任务,而不是使用`.await`慢悠悠地排队完成。 ## join! diff --git a/book/contents/performance/intro.md b/book/contents/performance/intro.md index 77df005e..ea962dd3 100644 --- a/book/contents/performance/intro.md +++ b/book/contents/performance/intro.md @@ -3,4 +3,7 @@ ## How do I profile a Rust web application in production? https://www.reddit.com/r/rust/comments/rupcux/how_do_i_profile_a_rust_web_application_in/ -https://zhuanlan.zhihu.com/p/191655266 \ No newline at end of file +https://zhuanlan.zhihu.com/p/191655266 + +## 内存对齐 +https://www.reddit.com/r/rust/comments/s793x7/force_4byte_memory_alignment/ \ No newline at end of file diff --git a/book/contents/performance/runtime-check.md b/book/contents/performance/runtime-check.md index 52543822..f1e99daf 100644 --- a/book/contents/performance/runtime-check.md +++ b/book/contents/performance/runtime-check.md @@ -28,5 +28,7 @@ https://www.reddit.com/r/rust/comments/rntx7s/why_use_boxleak/ ## bounds check https://www.reddit.com/r/rust/comments/rnbubh/whats_the_big_deal_with_bounds_checking/ +https://www.reddit.com/r/rust/comments/s6u65e/optimization_of_bubble_sort_fails_without_hinting/ + ## 使用assert 优化检查性能 -https://www.reddit.com/r/rust/comments/rui1zz/write_assertions_that_clarify_code_to_both_the/ \ No newline at end of file +https://www.reddit.com/r/rust/comments/rui1zz/write_assertions_that_clarify_code_to_both_the/