flutter / flutter/devtools

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

Đang mở
#2,777 0 bình luận 4 reaction 0 người được giao Xem trên GitHub
P2 screen: memory
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.