Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Import times are too slow

未關閉
#11 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

goauthentik/client-python 的其他 Issue

查看 goauthentik/client-python 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。