flutter / flutter/devtools

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

Open
#2,777 0 comments 4 reactions 0 assignees View on GitHub
P2 screen: memory
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.