← 返回刚才阅读的位置

知识卡片

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

操作层级指导资源交换

理解等级:中级

缓存、内存、磁盘和远程网络操作的代价可能相差多个数量级,避免慢操作有时值得付出更多快操作。图3.1是约2012年的历史延迟表,用于培养量级直觉:缓存纳秒、内存百纳秒、磁盘和远程网络可到毫秒。具体比值随硬件、载荷和距离变,不应当作现代机器实测。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      As Figure 3.1 depicts, faster operations proceed at thousands to a million times faster than slower operations. This means that sometimes we are justified in doing more work to avoid slower operations. For example, if we can stop a single I/O operation, we can afford to do 5,000 memory operations in its place.

    参考来源

    - 位置:《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) - 结论依据:原文的定义、比较或例子支持“缓存、内存、磁盘和远程网络操作的代价可能相差多个数量级,避免慢操作有时值得付出更多快操作”;正文据此说明用途和边界。 - 原始内容:As Figure 3.1 depicts, faster operations proceed at thousands to a million times faster than slower operations. This means that sometimes we are justified in doing more work to avoid slower operations. For example, if we can stop a single I/O operation, we can afford to do 5,000 memory operations in its place.