teads / TeadsSDK-iOS

Teads SDK for iOS - Premium branded "outstream" ads
https://support.teads.tv/support/solutions/articles/36000314785-ios-sdk-developer-guide
MIT License
27 stars 11 forks source link

[Question][Issue] Swift Package Manager takes long time to clone repository #205

Closed jfk056 closed 2 months ago

jfk056 commented 1 year ago

Dear team,

I wanted to bring to your attention that our build times have been increasingly slow. Upon further investigation, it appears that the size of our repository is a contributing factor. To better understand the issue and test potential solutions, I have created an example swift package that includes our library and simulates the slow build time due to the large repository size. All I did was run the swift build command on this package. Upon finishing the build command the .build/repository folder contains the TeadsSDK repository of size 1.08GB.

TeadsSDK-SizeIssue.zip

After checking the git objects, we have noticed that there are files that are no longer present in the repository but are still tracked in its history.

git rev-list --objects --all | grep -f <(git verify-pack -v .git/objects/pack/*.idx| sort -k 3 -n | cut -f 1 -d " " | tail -10)

7082f735e0d277b36b71f62180d8da2f9eba7b1f TeadsSDKPrevious/TeadsSDK.framework/TeadsSDK
e19312facca0afdd54387c1378b734128de718f9 TeadsSDK.framework/TeadsSDK
b5cc1c51981fcdaa551a46ff4d12443954d4b6c7 Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/GoogleMobileAds
97a14bfe364d36f5f320b9d98a430c21da89beb6 Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/GoogleMobileAds
7d49371ae587c370c95b88e7b0a59e3a702dc4dc Pods/Google-Mobile-Ads-SDK/Libraries/libGoogleMobileAds.a
f29c598c0a928e886775304d0cea8204ec110d51 TeadsSDKDemo/calabash.framework/Versions/A/calabash
32d26c559a17e4ba17c20b620745c9fe33a98243 TeadsSDKDemo/TeadsSDK.framework/Versions/A/TeadsSDK
d857cc46f258fabe505df85f6bd2faf313b3b9a5 TeadsSDKDemo/TeadsSDK.framework/Versions/A/TeadsSDK
a3feaadabae2f4110b0408b487a2f78f9ec6219c TeadsSDKDemo/TeadsSDK.framework/Versions/A/TeadsSDK
90ba2ad2095b3d29d0a46ddbd28f249b1ef78469 TeadsSDKDemo/TeadsSDK.framework/Versions/A/TeadsSDK

I would like to discuss potential solutions and come up with a plan of action.

Thank you!

github-paul-nicolas commented 1 year ago

Hello @jfk056 Thank you for raising this issue, we are going to take a look and see how to perform a history cleanup to remove those annoying data. I'll keep you posted

github-paul-nicolas commented 1 year ago

Hello @jfk056 As you find out SPM is not performing a shallow clone, I'm going to try to cleanup history by following this thread