Commit 569a2a6
committed
acceptance: refactor SubsetExpanded to use key->index map instead of map->slice conversion
Replaces map[string][][]string (engine -> group) with a parallel pair of
slices (result, groups) indexed by first-seen insertion order, using a
keyToIdx map[string]int as the side structure for deduplication. This
eliminates the non-deterministic map iteration that determined result order.
Co-authored-by: Isaac1 parent 22304e1 commit 569a2a6
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
441 | 444 | | |
442 | 445 | | |
443 | 446 | | |
| |||
446 | 449 | | |
447 | 450 | | |
448 | 451 | | |
449 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
450 | 460 | | |
451 | | - | |
452 | | - | |
453 | | - | |
| 461 | + | |
| 462 | + | |
454 | 463 | | |
455 | 464 | | |
456 | 465 | | |
| |||
0 commit comments