goauthentik / goauthentik/client-python

Import times are too slow

Đang mở
#11 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Mustache
Star
2
Fork
1
Merge trung bình
15 giờ 5 phút
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.