Sample project for "Build時間改善" at CA.swift
Swift
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
BuildTimeSample.xcodeproj
BuildTimeSample
.gitignore
LICENSE
README.md

README.md

BuildTimeSample

Description

Sample project for "Build時間改善" (Build Time Improvement) at CA.swift

Measurement Environment

  • Xcode 8.1
  • MacBook Pro (Retina, 15-inch, Mid 2015)
  • 2.5 GHz Intel Core i7
  • Memory 16 GB

Demo

Sample1

Slide 34

  • Too many + operators
  • Nil coalescing operator
Before After
Build Time 74757 ms 3 ms

Sample2

Slide 44

  • Set Dictionary directly as method argument
  • Use nil coalescing operator in value of Dictionary
Before After
Build Time 2817 ms 1 ms

Sample3

Slide 48

  • Set complex expression as CGSize initializer argument
  • Mixing CGFloat and a numeric value with unclear type
Before After
Build Time 9437 ms 1 ms

LICENSE

Under the MIT license. See LICENSE file for details.