goauthentik / goauthentik/client-python
Import times are too slow
- Linguagem predominante
- Mustache
- Estrelas
- 2
- Forks
- 1
- Merge médio
- 15h 5min
- PRs com merge (30d)
- 2
Descrição
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
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- api, performance
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 45/100