Import times are too slow
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- python
- 領域
- api, performance
研究方向
重現 test-script.py 在有和沒有 import authentik_client 時的計時。從 authentik_client 套件的進入點開始,追蹤匯入期間執行的內容。完成的標準是用戶端仍可匯入並正常運作,同時降低回報的初始化延遲,並驗證計時結果。
由索引模型根據 Issue 內容生成。
描述
Just adding import authentik_client add +9s of initialization time!
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:
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
- 主要語言
- Mustache
- 星號
- 2
- 分支
- 1
- 平均合併
- 15 小時 5 分鐘
- 30 天內合併 PR
- 2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
goauthentik/client-python 的其他 Issue
-
Data returned from the API on StagesApi().stages_invitation_invitations_create() fails validation 未關閉
難度 3/5 1-2 天 新手友好度 45/100
goauthentik/client-python#18 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 42/100
goauthentik/client-python#10 ·
-
難度 3/5 1-2 天 新手友好度 35/100
goauthentik/client-python#9 · 1 個 reaction ·
查看 goauthentik/client-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
mksglu/context-mode#1200 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
難度 1/5 1 小時以內 新手友好度 80/100
-
難度 2/5 1-3 小時 新手友好度 75/100