flutter / flutter/devtools

Warn developers if they are using `List<int>` or `List<double>` where they could safely use a typed data list

未关闭
#2,777 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
P2 screen: memory
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

For example, a `List` of 1000 entries will use at least 64 * 1000 bits.

If that list will only ever contain small numbers, a Int32/Int16/Int8List would use less memory.

We should check if this would help some of our larger applications, and if so, find a way to add a warning to devtools.

/cc @jacob314

贡献指南

打开贡献指南

调研方向

该 issue 未指定任何文件、测试或入口点。首先评估类型化数据列表是否能使提到的较大型应用受益,然后确定 DevTools 可以在哪里显示警告。完成的标准是已确定其益处,并定义了具体的警告方案。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。