Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable] [CP] Please cherry pick fix for "Superslow access to variables" #53541

Closed
a-siva opened this issue Sep 15, 2023 · 5 comments
Closed
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. cherry-pick-approved Label for approved cherrypick request cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. cherry-pick-review Issue that need cherry pick triage to approve merge-to-stable

Comments

@a-siva
Copy link
Contributor

a-siva commented Sep 15, 2023

Commit(s) to merge

8a85dac

Target

stable

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/326242

Issue Description

Please see flutter/flutter#133195
Users are running into super slow cycles while debugging their Flutter apps

What is the fix

Avoid searching static functions in the imported libraries, Searching in the imported libraries could be very slow as they can be huge (e.g. the whole Flutter framework)

References to members are fully resolved in kernel. So, when
looking for a static function in the library scope, there is no need to
search in the imported libraries.

Why cherry-pick

Flutter developers are running into this issue while debugging their apps and is hurting their productivity

Risk

low

Issue link(s)

flutter/flutter#133195

Extra Info

No response

@a-siva a-siva added the cherry-pick-review Issue that need cherry pick triage to approve label Sep 15, 2023
@a-siva a-siva added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Sep 15, 2023
@a-siva a-siva changed the title [CP] Please cherry pick fix for "Superslow access to variables" [stable] [CP] Please cherry pick fix for "Superslow access to variables" Sep 15, 2023
@a-siva
Copy link
Contributor Author

a-siva commented Sep 15, 2023

//cc @alexmarkov

@itsjustkevin
Copy link
Contributor

@jakemac53 could you take a look at this cherry-pick?

@itsjustkevin
Copy link
Contributor

Well, this should have gone to @dcharkes sorry @jakemac53!

@dcharkes
Copy link
Contributor

lgtm!

@itsjustkevin itsjustkevin added merge-to-stable cherry-pick-approved Label for approved cherrypick request labels Sep 21, 2023
copybara-service bot pushed a commit that referenced this issue Sep 26, 2023
…ed libraries

References to members are fully resolved in kernel. So, when
looking for a static function in the library scope, there is no need to
search in the imported libraries.

Searching in the imported libraries could be very slow as they can be
huge (e.g. the whole Flutter framework).
TEST=manually verified repro from flutter/flutter#133195

Fixes flutter/flutter#133195
Cherry-pick-request: #53541
Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/323201
Change-Id: Ib84478cebf761ef574356e8e63bd3e9b5ba1507d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326242
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
@itsjustkevin itsjustkevin added the cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. label Sep 26, 2023
@sjcons
Copy link

sjcons commented Sep 29, 2023

I downgraded from Flutter 3.14 Master with this fix to 3.13.6 Stable to debug and create production builds for API level 33 and this is now working fine. This was not just super-slow access to variables. I could NOT build at API level 33 due to SCUDO memory issues as it would always fail. Much appreciated for getting this done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. cherry-pick-approved Label for approved cherrypick request cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. cherry-pick-review Issue that need cherry pick triage to approve merge-to-stable
Projects
None yet
Development

No branches or pull requests

7 participants