Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Building...Please, wait
Search
Vadym
April 03, 2020
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building...Please, wait
Vadym
April 03, 2020
More Decks by Vadym
See All by Vadym
Date and time
degterev
0
51
Как перестать говорить "Ой, я забыл"
degterev
0
82
Other Decks in Programming
See All in Programming
XHTMLが残したもの
yosuke_furukawa
PRO
2
810
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
120
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
250
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
190
How I Stole PSI from Android Studio - DroidKaigi2026
worker8
0
130
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
340
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
430
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
120
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
240
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
1.5k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
120
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
560
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
520
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Become a Pro
speakerdeck
PRO
31
6.3k
Deep Space Network (abreviated)
tonyrice
0
310
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Ruling the World: When Life Gets Gamed
codingconduct
0
330
Transcript
BUILDING…PLEASE WAIT VADYM DEHTEROV 1
AGENDA AGENDA ▸ Build configuration, Xcode target, Xcode scheme ▸
Как llbuild строит build graph ▸ Как генерация кода влияет на build time ▸ Как померять время билда 2
BUILD CONFIGURATION 3
4 Build configuration
5 Build configuration Xcode target
6 Build configuration Xcode target Xcode scheme
LLBUILD 7
АВТОМАТИЗИРУЕТ СЕРИЮ ЗАДАЧ ПО СБОРКЕ 8
LLBUILD ЧТО ТАКОЕ LLBUILD? ▸ Новая билд сисистема от Apple
▸ Вызывает компилятор, линковщик и прочих ребят 9
A.swift B.swift C.swift 10
struct B { let c: C } struct A {
let c: C } struct C { let some: String } A.swift C.swift B.swift 11
struct B { let c: C } struct A {
let c: C } struct C { let some: String } A.swift C.swift B.swift struct Hot { let d: String } 12
ОТ КАКИХ ФАЙЛОВ У НАС МНОГО ЗАВИСИМОСТЕЙ? 13
SOURCERY 14
struct B { let c: String = L.Buttons.finish struct A
{ let c: String = L.Buttons.finish } internal enum L { internal enum Buttons { /// FINISH internal static let finish = L.tr("Localizable", “active_workout.buttons.finish") } A.swift localization.generated.swift B.swift 15
ЧТО ЕЩЕ ЗАМЕДЛЯЕТ? 16
let some = a * b 17
let some = (a / Float(c) + 4) * b
18
let some: Float = (a / Float(c) + 4) *
b 19
BUILD TIME КАК МОЖНО ПОМЕРЯТЬ? ▸ -Xfrontend -warn-long-expression-type-checking=100 ▸ -Xfrontend
-warn-long-function-bodies=100 20
Int(exactly: (steps.reduce(0, +) / Double(steps.count)).rounded()) ?? 0 21
22 defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
КАК ЖЕ СОБИРАЮТСЯ ТАРГЕТЫ В РАМКАХ ОДНОЙ СХЕМЫ? 23 Pods
Framework Main App
РАЗБИВАЙТЕ НА ТАРГЕТЫ 24
LLBUILD ЧТО НАМ ДАДУТ РАЗНЫЕ ТАРГЕТЫ? ▸ Разные generated.swift файлы
▸ llbuild умеет компилировать разные таргеты параллельно 25
ГДЕ ПРУФЫ? 26
XCODE-BUILD-TIME-RENDERING 27
28
29 28 Pods Pods
30 28 Pods Pods Framework Framework
31 28 Pods Pods Main app Framework Framework
TARGETS КАКИЕ ТРУДНОСТИ МОГУТ БЫТЬ? ▸ Код должен быть изолированным
▸ Отдельные тесты ▸ Конфликты в xcproject 32
XCODEGEN 33
СТРУКТУРА ФАЙЛОВ И ПАПОК ИЗ ФАЙЛОВОЙ СИСТЕМЫ 34
35
ЧТО ТО ПОПРОЩЕ 36
WMO VS INCREMENTAL 37
INCREMENTAL 38
WHOLE MODULE OPTIMIZATION 39
WMO VS INCREMENTAL WHOLE MODULE OPTIMIZATION ▸ Быстрее, если собирать
clean build ▸ Ломает инкрементальную сборку ▸ Компилятор делает оптимизации 40
INDEX WHILE BUILDING 41
42
BAZEL ЕСЛИ СОВСЕМ ЖМЕТ 43
BAZEL BAZEL OFFERS THE FOLLOWING ADVANTAGES ▸ Remote cache ▸
Multiplatform 44
ЗАВИСИМОСТИ 45
ЗАВИСИМОСТИ ЧТО С НИМИ ДЕЛАТЬ? ▸ Можно хранить уже собранные
▸ Для Carthage уже есть готовые инструменты ▸ Для CocoaPods есть сторонние плагины 46
SUMMARY О ЧЕМ ГОВОРИЛИ? ▸ Xcode target, Xcode scheme, Build
configuration ▸ Как мерять время билда ▸ Несколько лайфхаков как ускорить билд ▸ XcodeGen ▸ Bazel 47
THATS ALL CREDITS ▸ https://github.com/PaulTaykalo/xcode-build-times-rendering ▸ https://swift.org/blog/new-diagnostic-arch-overview/ ▸ https://github.com/apple/swift/blob/master/docs/ CompilerPerformance.md#diagnostic-options
▸ https://developer.apple.com/videos/play/wwdc2018/408/ ▸ https://github.com/yonaskolb/XcodeGen ▸ https://swift.org/blog/whole-module-optimizations/ 48
49 МОЙ ТЕЛЕГРАМ