← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2320.m.1

延迟分为处理与阻塞

理解等级:高级

响应时间既包含实际计算和资源消耗,也包含等待争用资源、不可用资源或其他计算结果。先用时序度量找到主要耗时,再决定减少工作还是改善资源;只优化耗时很少的算法无法显著改善总体。资源饱和也不总线性:CPU负载可逐步变慢,内存耗尽引发换页则可能突然恶化。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 性能 · 查看原书依据

      This leads to the two basic contributors to the response time and resource usage: processing time (when the system is working to respond and actively consuming resources) and blocked time (when the system is unable to respond).

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第09章《性能》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch09.html) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:This leads to the two basic contributors to the response time and resource usage: processing time (when the system is working to respond and actively consuming resources) and blocked time (when the system is unable to respond).