Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve performance of get_kernel_spec #311

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

takluyver
Copy link
Member

This avoids doing a full scan of kernel specs each time get_kernel_spec() is called. It only looks for the resource directory it needs, saving some unnecessary stat calls.

A caching solution could improve performance even more, but would be much more complex - this collects the low-hanging fruit.

@takluyver takluyver added this to the 5.2 milestone Dec 15, 2017
@Carreau Carreau merged commit adb8335 into jupyter:master Dec 15, 2017
Carreau added a commit that referenced this pull request Dec 15, 2017
takluyver added a commit to takluyver/jupyter_client that referenced this pull request Dec 16, 2017
blink1073 pushed a commit to blink1073/jupyter_client that referenced this pull request Aug 3, 2021
blink1073 pushed a commit to blink1073/jupyter_client that referenced this pull request Aug 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants