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 件 担当者 0 名 GitHub で見る
P2 screen: memory
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。