mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rather than waiting until we've used a huge amount of memory, attempt to make the choice to bail out based on the number of type bindings / disjunction choices we visit. I expect this will generally fail faster than the Swift 3 metric, but will still only fail when we've got clearly exponential type checking behvior. Since we have multiple sources of exponential behavior today, I don't want to make the bounds too tight. Once we fix some/most of that behavior we can look at further tightening up the metric.
101 KiB
101 KiB