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

Run flutter license script with dart --intrepret_irregexp runtime option#41646

Merged
auto-submit[bot] merged 5 commits intoflutter:mainfrom
aam:license-script-check-interpret
May 1, 2023
Merged

Run flutter license script with dart --intrepret_irregexp runtime option#41646
auto-submit[bot] merged 5 commits intoflutter:mainfrom
aam:license-script-check-interpret

Conversation

@aam
Copy link
Member

@aam aam commented May 1, 2023

For extremely large RegExp's that are used in flutter license script, running interpreter-based implementation is faster than running generated unoptimized code. For normal-sized RegExp's optimized code is expected to be faster.

Local testing shows 5x speed up on full license script run (311s vs 1430s).

Should help with flutter/flutter#118193

aam added 2 commits May 1, 2023 13:46
For extremely large RegExp's that are used in flutter license script, this is faster than running unoptimized code. For normal-sized RegExp's optimized code is expected to be faster.
@aam aam requested a review from zanderso May 1, 2023 21:09
@aam aam changed the title Run license check with dart --intrepret_irregexp Run flutter license script with dart --intrepret_irregexp runtime option May 1, 2023
--src ../../.. \
--out ../../../out/license_script_output \
--golden ../../ci/licenses_golden \
dart --enable-asserts --interpret_irregexp lib/main.dart \
Copy link
Member

Choose a reason for hiding this comment

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

Awesome. Please add a comment here that explains why the flag is needed and include the url for the GitHub issue. Thanks!

@aam aam added the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2023
@auto-submit auto-submit bot merged commit 2215ac6 into flutter:main May 1, 2023
@aam aam deleted the license-script-check-interpret branch May 1, 2023 22:11
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 1, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 2, 2023
flutter/engine@3fa6084...7d87410

2023-05-01 [email protected] Update xcode to 14e222b (flutter/engine#41640)
2023-05-01 [email protected] Run flutter license script with dart `--intrepret_irregexp` runtime option (flutter/engine#41646)
2023-05-01 [email protected] Roll Skia from 82d1ef7a833e to 38e56b6da8f9 (8 revisions) (flutter/engine#41645)
2023-05-01 [email protected] Move scenario app to use iPhone Se 3rd gen iOS 16.2, un-skip test `TwoPlatformViewsWithOtherBackDropFilterTests` (flutter/engine#41532)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants