Skip to content

flutter run compiles twice #92000

@jensjoha

Description

@jensjoha

From flutter run -v I get the following:

<- compile package:foo/main.dart
[...]
<- reset
<- recompile package:foo/main.dart 995dae5c-e4e5-4515-b1ab-8e81d2f7c950

Digging in to this a bit it:

I don't understand why we do this. For context this - on my machine - adds 1100+ ms to the startup for big apps.
Is there a good reason for doing this, and if not could we not do it? (and if there is could we potentially tweak it a bit?)

/cc @christopherfujino (which I've been told should in many ways be our point of contact).
/cc @aam which seemingly added the "don't send over the dill" stuff 3 years ago in #21133
/cc @chingjun which will be interested in skipping this for big apps too.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions