You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/modules/ROOT/pages/constraints-and-score/performance.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ which is called in its deepest loops.
9
9
Faster score calculation will return the same solution in less time with the same algorithm,
10
10
which normally means a better solution in equal time.
11
11
12
-
13
12
[#moveEvaluationSpeed]
14
13
== Move evaluation and score calculation speed
15
14
@@ -62,6 +61,11 @@ without forcing you to write a complicated incremental score calculation algorit
62
61
Note that the speedup is relative to the size of your planning problem (your __n__),
63
62
making incremental score calculation far more scalable.
64
63
64
+
[#enterprisePerformanceImprovements]
65
+
== Enterprise performance improvements
66
+
67
+
The xref:commercial-editions/commercial-editions.adoc[Enterprise Edition] of Timefold Solver has a number of xref:commercial-editions/performance-improvements.adoc[performance improvements] that can further speed up score calculation.
68
+
The Enterprise Edition also allows for <<constraintProfiling,Constraint Profiling>>, making it easy to identify constraint performance bottlenecks.
== Avoid calling remote services during score calculation
@@ -305,10 +309,6 @@ The code on the hot path of your application needs to be as fast as possible.
305
309
* The second best option is to use a `HashMap` or `HashSet`.
306
310
* Avoid using `java.util.Stream` or any other form of explicit iteration in constraints, as that is much slower.
307
311
308
-
[#enableAutomaticNodeSharing]
309
-
== Enable automatic node sharing
310
-
If you are using the xref:commercial-editions/commercial-editions.adoc[Enterprise Edition], you should xref:commercial-editions/performance-improvements.adoc#automaticNodeSharing[enable automatic node sharing] as it can significantly speed up score calculation.
311
-
312
312
[#benchmark]
313
313
== Benchmark
314
314
Whatever you do, benchmark on a large and diverse set of inputs.
Copy file name to clipboardExpand all lines: quarkus-integration/quarkus/deployment/src/main/java/ai/timefold/solver/quarkus/deployment/config/SolverBuildTimeConfig.java
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ public interface SolverBuildTimeConfig {
31
31
* Enable the Nearby Selection quick configuration.
32
32
* <p>
33
33
* Note: this setting is only available in Timefold Solver
Copy file name to clipboardExpand all lines: quarkus-integration/quarkus/deployment/src/test/java/ai/timefold/solver/quarkus/TimefoldProcessorNodeSharingTest.java
Copy file name to clipboardExpand all lines: quarkus-integration/quarkus/runtime/src/main/java/ai/timefold/solver/quarkus/config/SolverRuntimeConfig.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public interface SolverRuntimeConfig {
30
30
31
31
/**
32
32
* Note: this setting is only available in Timefold Solver
Copy file name to clipboardExpand all lines: spring-integration/spring-boot-autoconfigure/src/main/java/ai/timefold/solver/spring/boot/autoconfigure/config/SolverProperties.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ public class SolverProperties {
33
33
34
34
/**
35
35
* Note: this setting is only available in Timefold Solver
Copy file name to clipboardExpand all lines: spring-integration/spring-boot-autoconfigure/src/test/java/ai/timefold/solver/spring/boot/autoconfigure/TimefoldSolverConstraintAutoConfigurationTest.java
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,6 @@ class TimefoldSolverConstraintAutoConfigurationTest {
0 commit comments