Commit 63bc62b
committed
perf: avoid intermediate OrderedSet allocations in _prepare_entry_states
Replace two set operations (- and |) that each allocate an intermediate
OrderedSet with a single-pass generator + update. Eliminates 2
allocations per microstep.1 parent d6ebb61 commit 63bc62b
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
565 | 567 | | |
| 568 | + | |
566 | 569 | | |
567 | 570 | | |
568 | 571 | | |
| |||
0 commit comments