[SR-7026] Compiler runs extremely slow on this bit shifting and or-ing code #49574
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: ca2cef5b3c16ece282f62eec59b2367b
Issue Description:
This code takes several minutes to compile. On my MBP i5 2.4Ghz it takes just under 3 minutes.
I've tried on both the Standard and New build system, both behave the same.
Unfortunately I don't know why. If I break it out to several lines doing each shift on a separate line or-equaling them together the compiler has no problem.
Slow code:
Fast code:
The text was updated successfully, but these errors were encountered: