Which is more expensive and by how much:
List<cards> cardList = getMyList(small);//returns a list of 100 elements
cardList.add(card);
Vs.
List<cards> cardList = getMyList(big);//returns a list of 100,000 elements
cardList.add(card);
I guess my real question is, is it expensive to bring a large list into memory? Or is list smart enough to get only as big as it needs to be? Small when adding but large when searching.