goauthentik / goauthentik/client-python

Import times are too slow

Aperta
#11 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Mustache
Stelle
2
Fork
1
Merge medio
15h 5m
PR unite (30g)
2

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.