You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deeply nested if/else expressions have a worst-case exponential behavior.
This will for instance manifest when returning literal values which cause
repeated analysis of conditional branches with subtly different type context
for each literal.
This can be optimized by observing that a simple literal context will yield
the same analysis as its fallback type, and likewise, two literals of the
same fallback type will yield the same analysis. In those case we can avoid
the repeated analysis and prevent the worst-case exponential behavior.
Fixes#9591
0 commit comments