ArrayList uses `items` slice to store len initialized items, while PriorityQueue stores `capacity` potentially uninitialized items. This is a surprising difference in the API that leads to bugs! https://github.com/tigerbeetle/tigerbeetle/pull/1948
20 KiB
20 KiB