Commit 06d4748
Cache mutually_exclusive? results and use Array#intersect?
Cache type-pair mutual exclusivity checks to avoid repeated
possible_types lookups for the same pair. Use object identity
(equal?) instead of == for type comparison, and Array#intersect?
instead of (& other).empty? for the set overlap check.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d246f7b commit 06d4748
1 file changed
Lines changed: 28 additions & 10 deletions
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
486 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
487 | 490 | | |
488 | 491 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
498 | 508 | | |
| 509 | + | |
499 | 510 | | |
| 511 | + | |
500 | 512 | | |
501 | 513 | | |
502 | 514 | | |
503 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
504 | 522 | | |
505 | 523 | | |
506 | 524 | | |
0 commit comments