Import times are too slow
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, performance
Research direction
Reproduce the timing from test-script.py with and without import authentik_client. Start at the authentik_client package entry point and trace what runs during import. Done means the client still imports and works while the reported initialization delay is reduced and the timing is verified.
Written by the indexing model from the issue text.
Description
Just adding import authentik_client add +9s of initialization time!
import os
import sys
import authentik_client
def main():
print(f"Hello")
if __name__ == "__main__":
main()
Run time:
$ time python3 test-script.py
Hello
real 0m9.459s
user 0m9.361s
sys 0m0.098s
Comenting out the import:
import os
import sys
def main():
print(f"Hello")
if __name__ == "__main__":
main()
Run time:
$ time python3 test-script.py
Hello
real 0m0.013s
user 0m0.011s
sys 0m0.003s
- Dominant language
- Mustache
- Stars
- 2
- Forks
- 1
- Avg merge
- 15h 5m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from goauthentik/client-python
-
Data returned from the API on StagesApi().stages_invitation_invitations_create() fails validation Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
goauthentik/client-python#18 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
goauthentik/client-python#10 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
goauthentik/client-python#9 · 1 reaction ·
All issues in goauthentik/client-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100