Deleting a branch is permanent. It CANNOT be undone. Continue?
No due date set.
This issue currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》
参考项目:
https://openi.pcl.ac.cn/OpenI/Paddle
参考Gitee加载,似乎是分批次加载分支信息
#360 平台首页推荐项目里的Paddle好像点击没反应
zeizei/OpenI_Learning#360
前端无变化,后端把项目页的分支查询接口的命令从git show-ref --heads改为了git for-each-ref --format='%(refname:short)' refs/heads/
,在生产环境paddle项目下测试这个接口比原来的show-ref明显快一些.
另外生产环境慢是因为在paddle项目下 refs/remotes下面有很多无效的目录,之前手工删除并执行gc后,生产环境已经比原来快了不少,从8每秒左右到3秒左右后来发现镜像同步后删除的目录还会同步回来,所以手工删除的方法无效(git show-ref --heads会受这些目录影响,git for-each-ref --format='%(refname:short)' refs/heads/测试时秒回,感觉不受影响,应该可以优化项目打开时间)。 验证时在开发和测试环境 项目分支显示和原来一样即验证通过。上生产环境再测试paddle项目看下实际效果。
如果分支数很多,到了上万的级别,加载还是会慢,例如pytorch有1万多个分支,这种目前还没有解决。 gitea官方有一个issue(https://github.com/go-gitea/gitea/issues/14180)也是反馈相同问题目前还是open状态。
开发环境挑选了2个项目验证,项目分支显示和原来一样。上线了再观察。
生产环境
OpenI/aiforge项目510毫秒,
OpenI/Paddle项目第一次加载耗时6秒(比之前快了),第二次加载884毫秒。
关闭此单。