I'm working on a project that uses a couple maps that can have over 100,000 keys. Currently I'm creating the maps at each runtime using an abbreviated form of the data to save time so that the maps only have around 1,000 keys. But I would like to test with the full extent of data that I have available.
I'm wondering how I can create a map in a class, then save that object to the hard drive, then be able to reference that object in different classes so that I do not need to create and fill the map each time I test the class. I'm writing the class in Java using Eclipse.
Edit: I believe it is called Object Serialization, but would I have to read the whole map before use if it's serialized? Or would it effectively be the same as calling a local variable?