Skip to content

Cache the promise returned by the command finder - #8317

Merged
Don Jayamanne (DonJayamanne) merged 2 commits into
microsoft:masterfrom
DonJayamanne:dsPerfImprovements1
Oct 31, 2019
Merged

Don Jayamanne (DonJayamanne) merged 2 commits into
microsoft:masterfrom
DonJayamanne:dsPerfImprovements1

Conversation

@DonJayamanne

@DonJayamanne Don Jayamanne (DonJayamanne) commented Oct 31, 2019 •

Copy link
Copy Markdown

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).

@codecov-io

Codecov (codecov-io) commented Oct 31, 2019 •

Copy link
Copy Markdown

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.

@IanMatthewHuff Ian Huff (IanMatthewHuff) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:shipit:

@DonJayamanne

Copy link
Copy Markdown
Author

Flaky CI

@DonJayamanne
Don Jayamanne (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
Don Jayamanne (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