We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba4ff6 commit 537bcf0Copy full SHA for 537bcf0
1 file changed
core/src/main/java/ai/timefold/solver/core/impl/util/ElementAwareArrayList.java
@@ -39,7 +39,7 @@ public final class ElementAwareArrayList<T extends @Nullable Object>
39
private static final Object[] EMPTY_ARRAY = new Object[0];
40
private static final int REMOVED_POSITION = -1;
41
42
- private static final int DEFAULT_CAPACITY = 8;
+ private static final int DEFAULT_CAPACITY = 2;
43
private static final int RETAIN_THRESHOLD = DEFAULT_CAPACITY; // Retain backing array when length <= this.
44
private Object @Nullable [] entries = EMPTY_ARRAY;
45
private int lastElementPosition = -1;
0 commit comments