If I have a grid and each position on grid is an ArrayList
is it better to
-
Construct all the ArrayLists at initialization, and just leave them active, even if their is nothing in there.
-
don’t make any ArrayList at initialization, but when an object moves to that spot, that instantiate an ArrayList and add it to the list, but if that object moves to a different grid, then delete that ArrayList, and make a new ArrayList, at that Enemies position
I’ve already done the first, and it works fine, but just wondering if is faster to do option 2.

