Skip to content

Accessing the known property in Python extension API is slow #23021

Closed

Description

here's the cpu profile

Creating a new issue as others have been closed.
This will hopefully be specific to improve performance of the API.

As you can see below, determineExtensionFromCallStack still takes around 2.7s and readFileSync still takes almost 1s.
I.e. almost 4s can still be reduced from the overall discovery of Jupyter kernels when using the Python API.

Screenshot 2024-03-04 at 09 36 36
latestxx.cpuprofile.txt

Activity

  1. karrtikr commented on Mar 4, 2024

    @karrtikr

    Sorry it seems the latest pre-release on Friday did not have the fixes in yet, I've published another one, can you try in about 30 minutes?

  2. DonJayamanne commented on Mar 4, 2024

    @DonJayamanne
    Author

    Awesome, performance is back to what it was now.
    Kernels refresh in 4s (back to what it was)
    Thanks

  3. locked as resolved and limited conversation to collaborators on Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions