Skip to content

naoto0n2/BuildTimeSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 37

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

Sample2

Slide 46

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

Sample3

Slide 50

  • 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.

Releases

No releases published

Packages

No packages published

Languages