[SR-1577] Ternary operator much slower to compile than if / else #44186
Labels
compiler
The Swift compiler itself
improvement
performance
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: ff256899ba0f3da0f98368b68df0de47
Issue Description:
A function with this line took about 4 seconds to compile in debug.
This equivalent version took only 5.4ms:
picks
is an array of instances of an NSManagedObject subclass,position
andpick_line
are both optional Integer types. (I don't know if this is relevant).Not sure if this should be labelled "Performance". Is that for issues in the compilation time or the performance of the compiled code.
The text was updated successfully, but these errors were encountered: