perf(fill): short-circuit default comparisons by count

This commit is contained in:
aj
2026-09-25 16:43:09 -04:00
parent 1b862dc1a8
commit b318950a54
7 changed files with 500 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ namespace OpenNest.Engine.Fill
if (parts == null || parts.Count == 0)
return default;
PerfCounters.CountFillScoreComputation();
var totalPartArea = 0.0;
var minX = double.MaxValue;
var minY = double.MaxValue;