Sample project for "Build時間改善" (Build Time Improvement) at CA.swift
- Xcode 8.1
- MacBook Pro (Retina, 15-inch, Mid 2015)
- 2.5 GHz Intel Core i7
- Memory 16 GB
- Too many + operators
- Nil coalescing operator
Before | After | |
---|---|---|
Build Time | 74757 ms | 3 ms |
- Set Dictionary directly as method argument
- Use nil coalescing operator in value of Dictionary
Before | After | |
---|---|---|
Build Time | 2817 ms | 1 ms |
- Set complex expression as CGSize initializer argument
- Mixing CGFloat and a numeric value with unclear type
Before | After | |
---|---|---|
Build Time | 9437 ms | 1 ms |
Under the MIT license. See LICENSE file for details.