Skip to content

Optimize Repository Size for XCode SwiftPackage Clone Speed #84

@lou-lan

Description

@lou-lan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions