Optimize Repository Size for XCode SwiftPackage Clone Speed

Open
#84 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
git, swift

Research direction

Start by reproducing the git clone described in the issue and inspect the repository's historical size relative to its approximately 34.9 MB latest code. Investigate the repository history and the CodeEditApp setup init path; done means the repository clone downloads substantially less than 1.38 GB without losing the current code.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Swift
Stars
133
Forks
56
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEditLanguages

All issues in CodeEditApp/CodeEditLanguages

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.