Skip to content

Batch evaluation requests when possible #1746

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

Merged
merged 6 commits into from
Sep 15, 2022

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Sep 10, 2022

Expression evaluation performance improvement:

  • Batch ChromeProxyService.evaluate() requests that are close in time
    and are executed in the same library and scope.
  • Add tests

Closes: #1747

@annagrin annagrin requested review from elliette and grouma September 10, 2022 01:12
_logger.fine('Evaluating batch of expressions $batchedExpression');

final RemoteObject list = await super.evaluateExpression(
first.isolateId, first.libraryUri, batchedExpression, first.scope);
Copy link
Member

Choose a reason for hiding this comment

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

So this doesn't require changes to the Dart Debug Extension? If so, neat!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep I wanted to make it transparent to the user - the only requirement is that the requests are done in parallel, as opposed to awaiting for one to finish before firing another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expression evaluation in a library is slow for large flutter apps
2 participants