Swift: Compiling very very slow

Originator:kametrixom
Number:rdar://22466245 Date Originated:28.08.2015
Status:Open Resolved:No
Product:Developer Tools: XCode Product Version:7 beta 5 (7A192o)
Classification: Reproducible:Yes
 
Summary:
This code takes incredibly long to compile (~20s)

Steps to Reproduce:
(1...10).map(String.init) + ["hello"]

Expected Results:
Should compile in about a second

Actual Results:
Takes approximately 20 seconds

Version:
XCode 7 beta 6 (7A192o)
OS X 10.11 beta 7 (15A263e)

Comments

I have had similar issues with higher order functions. In my case I was doing map and filter on an array of tuples. The compiler hung in Debug targets and segfaulted building release targets! I am going to see if I can reproduce and file a dup.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!