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

Improve performance by 22% via memoization. #2255

Merged
merged 2 commits into from
Jul 8, 2020

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Jul 8, 2020

I tested with the camera flutter plugin. Before this change it took
67 seconds. Multiple fixes brought down the duration:

  • memoize Package.fileType => 53 seconds (79% duration)
  • memoize ModelElement.name => 52 seconds (78% duration)

I tested with the camera flutter plugin. Before this change it took
67 seconds. Multiple fixes brought down the duration:

* memoize Package.fileType => 53 seconds (79% duration)
* memoize ModelElement.name => 52 seconds (78% duration)
@srawlins srawlins requested review from scheglov and jdkoren July 8, 2020 19:22
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jul 8, 2020
@srawlins srawlins merged commit 18b4ac0 into dart-lang:master Jul 8, 2020
@srawlins srawlins deleted the perf-1 branch July 8, 2020 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants