知识卡片
减少间接层也会减少灵活性
代理、接口和职责拆分改善可修改性,却可能增加调用链、上下文切换与网络开销。可通过运行时优化、直接通信或把高频合作组件共置降低开销;定期清理退化资源也可改善效率。应先依据热路径证据决定,不要为了局部时延移除所有封装与职责边界。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第09章 性能
原书出处 · 1 处
- 性能 · 查看原书依据
The use of intermediaries (so important for modifiability, as we saw in Chapter 8) increases the computational overhead in processing an event stream, so removing them improves latency. This is a classic modifiability/performance tradeoff.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第09章《性能》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch09.html)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:The use of intermediaries (so important for modifiability, as we saw in Chapter 8) increases the computational overhead in processing an event stream, so removing them improves latency. This is a classic modifiability/performance tradeoff.