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

Importing GraphServiceClient is extremely slow #904

Open
michaelmesser opened this issue Sep 21, 2024 · 1 comment
Open

Importing GraphServiceClient is extremely slow #904

michaelmesser opened this issue Sep 21, 2024 · 1 comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned

Comments

@michaelmesser
Copy link

from msgraph import GraphServiceClient

This line can sometimes take 3.4s. Is it possible to optimize this? I'm not sure if this is a bug or a feature request.

msgraph-sdk 1.8.0

@michaelmesser michaelmesser added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Sep 21, 2024
@shemogumbe
Copy link
Collaborator

Thanks @michaelmesser for using the SDK and for raising this.

I can confirm that this is true to some extent as I have experienced it too.

Importing the GraphService client could be taking long because it entails imports to all request builders to enable auto-complete experience when building requests.

I believe we could put some effort to imrove this though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned
Projects
None yet
Development

No branches or pull requests

2 participants