goauthentik / goauthentik/client-python

Import times are too slow

Open
#11 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Mustache
Stars
2
Forks
1
Avg merge
15h 5m
Merged PRs (30d)
2

Description

Just adding `import authentik_client` add +9s of initialization time!

```py
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:

```py
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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.