Original Post
I have a question, and an answer isn't necessarily that important at the moment but it may end up to be. I have a program that loads .lvl files for a game i'm programming. In order to cut back on memory usage/speed I was wondering if creating a two dimensional array of 2000 variables each (i.e. myArray[2000][2000]) to keep track of each map object or rather using a hashmap would save on time when searching for the next map to load or save resources overall. If that isn't clear enough let me try to rephrase that. Would searching for an object in an array of [2000][2000] be faster/less memory intensive than using a hashmap to search for and load these objects? Thanks, James