[SR-12062] Swift compiler slow when SignedNumeric is used inside closure #54498
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
Attachment: Download
Environment
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Additional Detail from JIRA
md5: 32fc33dd059780912b48deddad38dff8
Issue Description:
Swift compiler is considerably slow when SignedNumeric is used inside closure (might be because of overflow handling?).
Following simple code is taking about 70ms on my machine:
By removing the negation operator ('-') drops to mere ~1.6ms
AST and SIL after SILGen are attached just in case
The text was updated successfully, but these errors were encountered: