Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Use track-widget-creation transformer included in the sdk. #8994

Closed
wants to merge 1 commit into from

Conversation

jacob314
Copy link
Contributor

This improves performance as the version in the SDK is able to work more
incrementally and avoids creating an expensive ClassHierarchy.
There is now no measureable performance difference with the option so the
kernel transformer can be enabled by default.

Test output results:
flutter test
04:06 +4043 ~86:

flutter test --track-widget-creation
04:06 +4051 ~78:

@jacob314
Copy link
Contributor Author

This CL depends on https://dart-review.googlesource.com/c/sdk/+/102920

@jacob314
Copy link
Contributor Author

This CL won't pass until the matching dart-sdk change has landed first.

Copy link

@askeksa-google askeksa-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Seems even cleaner this way.

@jacob314 jacob314 force-pushed the use_version_in_sdk branch from 7ad3f3e to 98ef7d6 Compare May 21, 2019 14:59
This improves performance as the version in the SDK is able to work more
incrementally and avoids creating an expensive ClassHierarchy.
There is now no measureable performance difference with the option so the
kernel transformer can be enabled by default.
@terrylucas
Copy link
Contributor

terrylucas commented May 22, 2019

Ben did a Flutter build and Dart Roll, the Dart SDK includes:

  • Jacob's CL
  • Slava's CL to make Flutter-hhh bot green.

When I hear the above roll is good, I'll sync to TIP of flutter rebase the CL and if this CL works I'll commit.

@dgrove
Copy link

dgrove commented May 24, 2019

@terrylucas any updates here?

@terrylucas
Copy link
Contributor

terrylucas commented May 25, 2019

Finally, 1.6.3 of Flutter has the dart-sdk track-widget-creation checkin. Was able to apply this CL, successfully compile, Flutter run launches with --track-widget-creation (by default) and DevTools inspector works.

Awaiting Travis test passes and will apply CL (minor change DEPS reverted, Dart-sdk SHA was updated).

@terrylucas
Copy link
Contributor

I have committed this CL (see #9085) patched in Jacob's original with a few minor changes DEPS (used tip dart-sdk SHA) and a merge conflict in frontend_server/lib/server.dart

@terrylucas terrylucas closed this May 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants