-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
API usage guidelines #22994
Comments
I have found that accessing |
Thanks for all the investigation.
Based on offline testing Regarding API guidelines,
Let me know if you have any questions. |
I think we should reopen this Else someone looking at this issue world try this solution which might now be right |
Please let me know once calling extension id PR is fixed and I can add the link to updated guidelines here, in case someone runs into the issue. Until then the guideline stated in the issue is true. |
Closes microsoft/vscode-python#22994 closes microsoft/vscode-python#22993 Temporarily build our own known cache from which we return envs instead.
Closes microsoft/vscode-python#22994 closes microsoft/vscode-python#22993 Temporarily build our own known cache from which we return envs instead.
It feels like accessing the
known
property can result in a lot of code getting executed, even if its just logging (i.e. 1,500 entries in a few seconds is a lot of logging).Here #22993
Also looking at the code in Python extension
There's a lot going on here, hence it feels like I (as a a user of the above API) would need to be careful accessing this 100s of times.
As this could unnecessarily chew CPU,
Question
known
Anyways, asking this as I fear that changes in Jupyter to now access
know
everytime we need somethign is actually going to slow the extnsion host significantly as theres a lot going on here,I.e. calling this 100s of times in a few ms could cause issues (after all this is what I was experiencing)
Note:
The text was updated successfully, but these errors were encountered: