Skip to content

Cache the promise returned by the command finder #8317

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 2 commits into from
Oct 31, 2019

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Oct 31, 2019

Part of #7242 (there will be others)

As everything is async, if we have two executions of the method findBestCommand, they'll both spin off the finder. This ensures that we always find once and if one is in progress, then we use that same task.

This will hopefully save additional CPU/resource usage (specially on windows).

@DonJayamanne DonJayamanne added the no-changelog No news entry required label Oct 31, 2019
@codecov-io
Copy link

codecov-io commented Oct 31, 2019

Codecov Report

Merging #8317 into master will decrease coverage by 0.02%.
The diff coverage is 38.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8317      +/-   ##
==========================================
- Coverage   59.33%   59.31%   -0.03%     
==========================================
  Files         504      504              
  Lines       23096    23103       +7     
  Branches     3737     3740       +3     
==========================================
- Hits        13704    13703       -1     
- Misses       8500     8507       +7     
- Partials      892      893       +1
Impacted Files Coverage Δ
...client/datascience/jupyter/jupyterCommandFinder.ts 72.09% <38.46%> (-3.67%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9c62c...b69f5fc. Read the comment docs.

Copy link
Member

@IanMatthewHuff IanMatthewHuff left a comment

Choose a reason for hiding this comment

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

:shipit:

@DonJayamanne
Copy link
Author

Flaky CI

@DonJayamanne DonJayamanne reopened this Oct 31, 2019
@DonJayamanne DonJayamanne merged commit 0774fb8 into microsoft:master Oct 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 7, 2019
@DonJayamanne DonJayamanne deleted the dsPerfImprovements1 branch November 15, 2019 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants