I'm currently starting to get items into my game which need to be accessed frequently. All items are derived from one ore more base classes and i'm currently putting them in one big list. Eventually the game will have thousand of items and i'm wondering if this will slow things down.
Let's say i have a armor class -> derived from items. Does this help when traversing that huge list like this?
foreach (armor item in itemList)
{
//Do stuff.
}
Or will it still traverse over every item in the list? Am i a lot better off (performance wise) storing it all in different lists? I rather use the above method as it will be easier to access random items.