Enable compilation caching and eager linking for faster builds#5740
Open
AvdLee wants to merge 1 commit intowikimedia:mainfrom
Open
Enable compilation caching and eager linking for faster builds#5740AvdLee wants to merge 1 commit intowikimedia:mainfrom
AvdLee wants to merge 1 commit intowikimedia:mainfrom
Conversation
Enable recommended Xcode build settings to improve build performance: - COMPILATION_CACHING = YES (Debug + Release): caches compilation results so repeated builds of unchanged sources are served from cache. Benefits branch switching, pulling changes, and CI builds. - EAGER_LINKING = YES (Debug): allows the linker to start before all compilation tasks finish, reducing wall-clock build time. Benchmark (Xcode 26.2, Apple Silicon, 1,154 Swift files): - Clean build: 48.7s → 46.5s - Cached clean: 45.0s (warm compilation cache) - Zero-change: 12.9s → 12.2s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enables recommended Xcode build settings to improve build performance for the Wikipedia iOS app.
Changes
COMPILATION_CACHING = YES(Debug + Release): Caches compilation results so repeated builds of unchanged sources are served from cache. The biggest wins come from branch switching, pulling changes, and CI builds where many files remain unchanged between builds.EAGER_LINKING = YES(Debug): Allows the linker to start work before all compilation tasks finish, reducing wall-clock build time during development.Benchmark (Xcode 26.2, Apple Silicon, 1,154 Swift files)
How these were found
Analysis was performed using Xcode Build Optimization Agent Skills (note: still private, will be available soon. Happy to invite!), which benchmarks builds, audits project settings against best practices, and identifies optimization opportunities.
Test plan
xcodebuild -showBuildSettings