[SR-1346] Compiling CGRect.init way slower than CGRectMake #43954
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
Environment
OS X 10.11.4 (15E65)
Xcode Version 7.3.1 (7D1012)
Toolchain: Xcode Swift 2.2.1 Snapshot 2016-04-23 (a)
Additional Detail from JIRA
md5: da0a2ffc38a5c5d34b828a9ee4664273
Issue Description:
Given the following two functions, the second one takes more than 10 times as long to compile as the first one. (~60ms vs ~700ms on my machine)
The only difference is, that the first one uses `CGRectMake` and the second one uses `CGRect.init`
Complete Gist: https://gist.github.com/iv-mexx/938c09ff4f9861bd7827f7f8611aa8b6
The text was updated successfully, but these errors were encountered: