title: What is the quickest way to load a serialized hashmap in Java?
body: <p>I have serialized a HashMap into a file using objectstream and fileoutputstream. It is a very huge HashMap with around 150 million entries. It takes a long time (~40 mins) to load when I read it back from the file.</p>
  
  <p>I am using a FileOutputStream followed by ObjectOutputStream to serialize the object. Then, I am using the ObjectInputStream and FileInputStream to read the object.</p>
  
  <p>Is there a recommended way to read a serialized HashMap so that it loads quickly from the file?</p>