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
Edgars
12/09/2018, 10:52 PM
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!