Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Building...Please, wait
Search
Vadym
April 03, 2020
Programming
0
59
Building...Please, wait
Vadym
April 03, 2020
Tweet
Share
More Decks by Vadym
See All by Vadym
Date and time
degterev
0
39
Как перестать говорить "Ой, я забыл"
degterev
0
69
Other Decks in Programming
See All in Programming
ペアプロ × 生成AI 現場での実践と課題について / generative-ai-in-pair-programming
codmoninc
1
18k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
470
Hack Claude Code with Claude Code
choplin
4
2k
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
780
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
590
Goで作る、開発・CI環境
sin392
0
230
Startups on Rails in Past, Present and Future–Irina Nazarova, RailsConf 2025
irinanazarova
0
100
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
390
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
760
Rails Frontend Evolution: It Was a Setup All Along
skryukov
0
140
AI コーディングエージェントの時代へ:JetBrains が描く開発の未来
masaruhr
1
140
チームのテスト力を総合的に鍛えて品質、スピード、レジリエンスを共立させる/Testing approach that improves quality, speed, and resilience
goyoki
5
870
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Being A Developer After 40
akosma
90
590k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
690
BBQ
matthewcrist
89
9.7k
Scaling GitHub
holman
460
140k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
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 МОЙ ТЕЛЕГРАМ