Merge pull request #359 from muwuren/patch-2

"Async 编程简介" 表格分隔符错误
pull/362/head
Sunface 3 years ago committed by GitHub
commit 34918a31da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@
| 操作 | async | 线程 |
| ---- | ----- | ---- |
| 创建 | 0.3微妙 | 17微妙 |
| 线程切换 0.2微妙 | 1.7微妙 |
| 线程切换 | 0.2微妙 | 1.7微妙 |
可以看出,`async` 在线程切换的开销显著低于多线程,对于 IO 密集的场景,这种性能开销累计下来会非常可怕!

Loading…
Cancel
Save