OpenTripPlanner/utils/src/test
Vincent Paturet e7009697cc Use optimal initial capacity for HashMap, HashSet, and ArrayList
Replace new HashMap<>(n) / new HashSet<>(n) with the Java 19+ factory
methods HashMap.newHashMap(n) / HashSet.newHashSet(n) which correctly
account for the 0.75 load factor. Also pre-size ArrayLists and HashMaps
where the element count is known at construction time.
2026-03-04 08:16:38 +01:00
..
java/org/opentripplanner/utils Use optimal initial capacity for HashMap, HashSet, and ArrayList 2026-03-04 08:16:38 +01:00