Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spm load time #236

Merged
merged 12 commits into from
Mar 10, 2024
Merged

Fix spm load time #236

merged 12 commits into from
Mar 10, 2024

Conversation

paulb777
Copy link
Collaborator

@paulb777 paulb777 commented Mar 9, 2024

Reduce SPM load time from 20 minutes to about 10 seconds.

10 seconds is still not good enough for a single library, but probably ok for the upcoming release.

More speedups may be possible by further consolidating only needed files to a single source directory for SPM.

Note that https://github.com/grpc/grpc-ios/actions/runs/8217485955 is now 19 minutes versus times ranging from 33 to 71 minutes for previous runs.

Firebase/Firestore integration testing in firebase/firebase-ios-sdk#12508. The spm-source tests pass in https://github.com/firebase/firebase-ios-sdk/actions/runs/8217864323/job/22474043936?pr=12508

This PR also eliminates the symbolic linking of Package.swift because integration testing was failing because SPM does not support symbolic links:

Screenshot 2024-03-09 at 3 00 43 PM

@HannahShiSFB
Copy link
Collaborator

Thanks for the effort. I'll create a new release soon.
In the mean while, will figure a new way generating the swift package file.

@HannahShiSFB HannahShiSFB merged commit 7cb944b into grpc_release_1.62.x Mar 10, 2024
5 checks passed
@paulb777 paulb777 deleted the pb-fix-spm-load-time branch March 11, 2024 14:44
@HannahShiSFB HannahShiSFB mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants