Switching from class to class sometimes is slow
未关闭
devtools app performance
memory > diff
P2
screen: memory
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
On the memory diff tab, after taking a snapshot, pretend we have classes A and B.
Selecting class A performs computation to calculate the set of retaining paths for to A. Then selecting class B, does the same thing for all the retaining paths of class B. Selecting class A again should be fast, since we have already performed this work. But it appears to take equally as long to compute the set of retaining paths. I suspect we are not caching this computation.
贡献指南
调研方向
从 memory diff 标签页的实现开始,跟踪选择类时触发的 retaining path 计算。在获取快照后重现 A–B–A 选择序列,并比较重复计算所需的时间。当返回类 A 时能够避免重新计算其 retaining paths,同时保留显示的结果,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart
- 领域
- devtools, performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100