[SR-12393] Slow type-checking for array literal containing bitshifts of int literals #54830
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
performance
type checker
Area → compiler: Semantic analysis
Environment
Catalina 10.15.4b6, Xcode 11.4 beta 3 (11N132i)
Additional Detail from JIRA
md5: aabb2b8bb59f18232a1855b1b0fcb431
Issue Description:
I've tried to translate a piece of C-Code to Swift and learned that bit shifts to fill arrays increases compile time exponentially.
This compiles on a MacBook Pro i7 in 10s+ and one more line with two items doesn't compile anymore due to time out. Debug code size of this piece is more than 1KB.
The text was updated successfully, but these errors were encountered: