msgraph-sdk-python icon indicating copy to clipboard operation
msgraph-sdk-python copied to clipboard

Importing GraphServiceClient is extremely slow

Open michaelmesser opened this issue 1 year ago • 4 comments

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 avatar Sep 21 '24 20:09 michaelmesser

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

shemogumbe avatar Sep 25 '24 12:09 shemogumbe

Can this be prioritized higher? It makes any application using this library start very slowly.

michaelmesser avatar Jan 07 '25 21:01 michaelmesser

Is there a solution or work around?

michaelmesser avatar Apr 09 '25 18:04 michaelmesser

@michaelmesser no solution or workaround is in place for this. Do you have any in mind we can consider? The team is reduced on the project therefore the priority on issues is on only production breaking experiences,

musale avatar Apr 15 '25 13:04 musale