0

I have been asked for iterating and processing HashMap having custom object , say Employee as key and employee's age as value. If Map holds millions of data, how is performance and what is the way of optimizing it.

Thanks in advance.

saagaravk
  • 93
  • 1
  • 2
  • 11
  • Check out the answers to this question: http://stackoverflow.com/questions/4080370/hashmap-in-java-100-million-entries – Erwin Mar 16 '15 at 17:35
  • How many entries do you have? and what kind of processing do you want to perform? – T.Gounelle Mar 16 '15 at 17:46
  • Have a look at MapDB (http://www.mapdb.org/). I have tested it with only few Hundred thousands records but performance was great for my use case. – anuj Mar 16 '15 at 17:47

0 Answers0