Commit 8e5a58c
perf: prune cells where Newton converges outside the cell range
When Newton converges to a point outside the current cell's parameter
range, the nearest intersection is NOT in this cell — prune it instead
of subdividing. This eliminates pointless subdivision near cutout
boundaries where Newton always converges to the already-found boundary
intersection.
Reverted the pre-Newton dedup workaround and wider cutout margin —
they're no longer needed.
Example 4: 2.63s → 0.026s (100x speedup)
All 7 examples under 0.3s. 65 tests pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4e332b6 commit 8e5a58c
1 file changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 575 | | |
583 | 576 | | |
584 | 577 | | |
| |||
608 | 601 | | |
609 | 602 | | |
610 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
611 | 609 | | |
612 | 610 | | |
613 | 611 | | |
| |||
748 | 746 | | |
749 | 747 | | |
750 | 748 | | |
751 | | - | |
| 749 | + | |
752 | 750 | | |
753 | 751 | | |
754 | 752 | | |
| |||
765 | 763 | | |
766 | 764 | | |
767 | 765 | | |
768 | | - | |
| 766 | + | |
769 | 767 | | |
770 | 768 | | |
771 | 769 | | |
| |||
0 commit comments