Commit 1ce15a4
authored
PR #42556 was a nice optimization that dramatically sped up comparisons of discriminated unions. Unfortunately, the cost of determining whether a union is discriminated can be prohibitively high. In particular, an internal team with a very large repo saw their type count double and their memory usage increase from 6GB to 9GB, breaking their build. This changes splits the difference by not trying to compute the property types of intersection types - a notoriously slow operation.
1 parent 96c48b7 commit 1ce15a4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22028 | 22028 | | |
22029 | 22029 | | |
22030 | 22030 | | |
22031 | | - | |
| 22031 | + | |
22032 | 22032 | | |
22033 | 22033 | | |
22034 | 22034 | | |
| |||
0 commit comments