TreeNode depth is likely sometimes incorrect
未关闭
audit
P3
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
TreeNode.depth assumes that TreeNodes are not modified after the first time depth is accessed but it likely code violates this assumption.
We should probably instead switch to a scheme where TreeNode depth values are invalidated when the tree structure bellow them changes although this needs to be done with care to avoid excessive computations of depth.
贡献指南
调研方向
Locate the TreeNode implementation and inspect how depth is cached and how tree structure changes are applied. Trace the mutation paths first, then define completion as keeping depth values correct after structural changes without causing excessive recomputation; add or update regression coverage for those cases.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100