Optimize Repository Size for XCode SwiftPackage Clone Speed

未关闭
#84 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
git, swift

调研方向

首先复现 issue 中描述的 git clone,并检查 repository 的历史大小,相对于其约 34.9 MB 的最新代码进行比较。调查 repository 的历史记录以及 CodeEditApp 的 setup init 路径;当 repository clone 在不丢失当前代码的情况下下载量显著少于 1.38 GB 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Cloning the CodeEditLanguages repository is currently very slow due to its large size, primarily caused by historical commits. For example, cloning the repository with the following command results in downloading 1.38 GB of data:

git clone https://github.com/CodeEditApp/CodeEditLanguages.git
Cloning into 'CodeEditLanguages'...
remote: Enumerating objects: 1377, done.
remote: Total 1377 (delta 0), reused 0 (delta 0), pack-reused 1377 (from 1)
Receiving objects: 100% (1377/1377), 1.38 GiB | 15.44 MiB/s, done.
Resolving deltas: 100% (682/682), done.

However, the latest code size in the repository is only approximately 34.9 MB, meaning most of the download size is due to the history of the repository. This significantly slows down the cloning process, especially CodeEditApp setup init.

XCode is unable to configure the HTTP proxy, resulting in very slow speeds.

主要语言
Swift
星标
133
派生
56
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeEditApp/CodeEditLanguages 的其他 Issue

查看 CodeEditApp/CodeEditLanguages 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。