goauthentik / goauthentik/client-python
Import times are too slow
- 主要語言
- Mustache
- 星號
- 2
- 分支
- 1
- 平均合併
- 15 小時 5 分鐘
- 30 天內合併 PR
- 2
描述
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
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
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.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api, performance
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 45/100