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

Check context file without blocking GUI thread #291

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

takluyver
Copy link
Member

I noticed some time ago that a large part of what makes starting the GUI slow is waiting for the context file check, which usually involves starting a subprocess with a different Python, and often also doing some fairly heavy imports in the context file.

This pushes these operations into a separate thread, so we can start using the GUI before the context file check finishes. It also means saving the context file doesn't block the GUI.

Naturally, more async makes the tests a bit more complicated, but I think it's manageable.

@tmichela
Copy link
Member

LGTM

@takluyver
Copy link
Member Author

Oops, I missed the LGTM. Thanks!

@takluyver takluyver merged commit 05cf572 into master Jul 31, 2024
4 checks passed
@takluyver takluyver deleted the feat/async-check-context branch July 31, 2024 13:20
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.

2 participants