Commit 80d536f
committed
Fix atoms computation of OrType
Previously, pos/i7034.scala took more than a minute to compile on my M1 MacBook Pro.
Now it takes 5 seconds. The file consists of an IArray with over 4000 string literal
elements. The previous caching logic was faulty, which means there was a lot of repeated
computation of large immutable sets.1 parent ed81385 commit 80d536f
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3441 | 3441 | | |
3442 | 3442 | | |
3443 | 3443 | | |
3444 | | - | |
3445 | | - | |
| 3444 | + | |
| 3445 | + | |
3446 | 3446 | | |
3447 | 3447 | | |
3448 | | - | |
3449 | | - | |
3450 | | - | |
3451 | | - | |
| 3448 | + | |
3452 | 3449 | | |
3453 | 3450 | | |
3454 | | - | |
| 3451 | + | |
| 3452 | + | |
3455 | 3453 | | |
3456 | 3454 | | |
3457 | | - | |
| 3455 | + | |
| 3456 | + | |
3458 | 3457 | | |
3459 | 3458 | | |
3460 | 3459 | | |
| |||
0 commit comments