Skip to content

Update shape: skip the validity checks of the shape preprocessing outside debug builds - #763

Merged
fontanf merged 1 commit into
masterfrom
update-shape-skip-checks
Oct 31, 2026
Merged

fontanf merged 1 commit into
masterfrom
update-shape-skip-checks

Conversation

@fontanf

@fontanf fontanf commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Bumps shape to include fontanf/shape#153: the Shape::check() self-intersection tests in clean_extreme_slopes_*, trapezoidation and simplify are only run in debug builds. These functions run on every item shape each time an irregular tree search builds its BranchingScheme, so the checks were paid for every subproblem of the sequential value correction and every restart.

The bump also includes the two sorting commits of shape main since the previous pin (std::sort with exact comparisons).

Results on alma2025 (120 s, 3 runs in parallel):

  • same number of bins on the 10 instances;
  • several instances reach their final solution sooner (alma_01: 58.9 s → 43.9 s, alma_04: 40.7 s → 32.0 s, alma_05: 115.1 s → 99.6 s);
  • alma_10 with sequential value correction at queue size 1: 18 bins at 59.6 s instead of 68.2 s.

@fontanf
fontanf force-pushed the update-shape-skip-checks branch from 8e339e1 to ad16777 Compare October 31, 2026 09:14
@fontanf
fontanf merged commit 8e47b51 into master Oct 31, 2026
8 checks passed
@fontanf
fontanf deleted the update-shape-skip-checks branch October 31, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant