Well, depending on your algorithm it might not sca...
# advent-of-code
t
Well, depending on your algorithm it might not scale linearly. And you might have GC pressure if you are doing a lot of allocating.
e
Yeah, when you have an ArrayList with the capacity to store 7.2 million items, and you insert an item, well, wherever, but 7.2 million times... Lots of allocation indeed!