I want to store 2 keys and one value.
I have used hashmap but it's very slow for retrieval of the data as well as in searching of data.
So, can I have a better solution for it.
Please suggest me an efficient one.
i have taken a map and stored my key and value into it.
as, i have 2 keys, so i have taken one more map with parameter as key and a map.
now, i have searched for the key in this map.
It takes more than 25 minutes to search 10,000 keys.
(my map is loaded with 1 million entries).
That's why I am asking for a solution.
Please reply asap.
Kees Jan Koster
posted 9 years ago
Please post your lookup code.
Also, how much memory does your data structure use in memory, what is the heap size you allocated for this JVM?
Does this run in a stand-alone JVM or in an application server?