← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3086.a.2.a.3

提前传输与预取覆盖等待

理解等级:中级

I/O数据到得晚会让CPU空等,早发送、晚读取可让通信与计算重叠。预取进一步预测下一步需要的数据,在其他线程提前发起操作,争取使用时已准备好。收益依赖预测正确和时间重叠;这些方法主要减少等待,并非让一次I/O物理速度变快。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 理解性能的心智模型 · 查看原书依据

      Another idea is prefetching, which predicts the data required for processing and starts the I/O operation early, usually in a different thread to maximize the chance that data is ready when needed. For example, when you start typing in the search box, Google guesses your query and prefetches results from the server to reduce latency.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第3章《理解性能的心智模型》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch03.xhtml) - 结论依据:原文的定义、比较或例子支持“I/O数据到得晚会让CPU空等,早发送、晚读取可让通信与计算重叠”;正文据此说明用途和边界。 - 原始内容:Another idea is prefetching, which predicts the data required for processing and starts the I/O operation early, usually in a different thread to maximize the chance that data is ready when needed. For example, when you start typing in the search box, Google guesses your query and prefetches results from the server to reduce latency.