Commit e57cf5b
committed
Refactor deeply nested JSON to fix Windows CI C1060
The 9-level nested JSON initializer at line 549 exhausts MSVC compiler
heap even with single-threaded builds on GitHub's 16GB Windows runners.
Solution: Build the nested schema programmatically instead of using
nested initializers. This significantly reduces compiler memory pressure
while producing identical runtime results.
Tested locally: All 30 Part 2a tests pass.1 parent ee21a06 commit e57cf5b
1 file changed
Lines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
523 | 548 | | |
524 | 549 | | |
525 | 550 | | |
| |||
533 | 558 | | |
534 | 559 | | |
535 | 560 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
| 561 | + | |
| 562 | + | |
550 | 563 | | |
551 | 564 | | |
552 | 565 | | |
| |||
0 commit comments