microsoftgraph / microsoftgraph/msgraph-sdk-python

Importing GraphServiceClient is extremely slow

Open
#904 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted priority:p3
Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the from msgraph import GraphServiceClient import timing against msgraph-sdk 1.8.0, then profile the import path to identify where the 3.4 seconds are spent. Done means documenting a measured improvement with coverage for the import-time behavior, if the repository has a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.