flutter / flutter/devtools

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

Offen
#2,777 0 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
P2 screen: memory
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue names no files, tests, or entry points. Start by evaluating whether typed data lists benefit the larger applications mentioned, then identify where DevTools could surface a warning. Done means the benefit is established and a concrete warning approach is defined.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.