Improving Instagram iOs Build Speeds
summary
Instagram cuts incremental iOS build/link times by restructuring the monorepo: move shared code into xplat and fbbc frameworks, extract a core infra framework, and break product code into per-product frameworks so linking runs in parallel under Buck. A modularity sprint on Direct yields 50% faster link times (fast links ≈19s) and overall builds drop from ~2 minutes back to ~20s (about a sixth). Enforceable build-time rules plus an internal dependency injection layer and dashboards scale this to 31 products (≈35% fast-link rate).
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:52Initial vs incremental builds
- 3:39Linking as bottleneck
- 4:42Splitting code into frameworks
- 7:50Framework structure by layers
- 9:34Core framework for shared code
- 11:42Incremental product frameworks
- 13:52Incentivizing modularization
- 15:16Team achieves 50% faster builds
- 15:58Scaling modularization
- 17:21Results and improvements
related talks
33mImprove the build times of your project
41mTwo Birds with One Stone: Multimodule Architecture and Faster Builds
41mBuild apps for Billions
33mHow to Save Time with Ci and Build Time Reduction
27mFaster builds on Android: from 2 minutes to 2 seconds
32mBuilding at Google: From Idea to Production
42mPorting iOS Apps to Bazel + Q&A
43mBuilding iOS Apps without Xcode
