goauthentik / goauthentik/client-python

Import times are too slow

未关闭
#11 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。