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