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

Process iopub messages synchronously #12733

Merged
merged 5 commits into from
Jul 3, 2020

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Jul 2, 2020

For #12588

At least in VS Code Notebooks, the improvement is fairly significant.
Down from 3minutes to 5 seconds.

Note: This doesn't completely resolve the slow times experienced in the existing Notebook Editor.
We have delays due to UI updates there (however that too is down from 3minutes to ~15 seconds).
That might probably need to be addressed separately.

Either way its a significantly improvement.

@@ -341,7 +341,7 @@ export class NotebookExecutionService implements INotebookExecutionService {
this.registeredIOPubListeners.add(nb);
//tslint:disable-next-line:no-require-imports
const jupyterLab = require('@jupyterlab/services') as typeof import('@jupyterlab/services');
nb.registerIOPubListener(async (msg) => {
Copy link
Author

Choose a reason for hiding this comment

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

Was async as the original signature of the callback mandated this, now we don't need it to be async at all.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

🕐

@DonJayamanne DonJayamanne requested a review from rchiodo July 2, 2020 23:57
Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

:shipit:

…o issue12588

* 'issue12588' of github.com:DonJayamanne/pythonVSCode:
  Better way to determine the 'real' path for a file than assuming it's in a certain location (#12734)
  Add telemetry for 'Select Interpreter' command (#12723)
  Increase timeout for flaky tests & hooks (#12721)
  Drop Developer Tools from the bug issue template
  Add some logging to a flaky test (#12711)
  Special case failure for windows (#12714)
  Add link to python.dataScience.alwaysTrustNotebooks setting (#12702)
  Remove language server survey  (#12677)
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

@DonJayamanne DonJayamanne merged commit 27dfd87 into microsoft:master Jul 3, 2020
@DonJayamanne DonJayamanne deleted the issue12588 branch July 3, 2020 01:22
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.

3 participants