Alternate Object for Hashmap


Performance and scalability: Alternate Object for Hashmap

  1. Alternate Object for Hashmap (3 messages)

    In our application data (long values) is caches in a HashMap as key values pairs.In a 64bit machine Hashmap is taking additional 72bits for each entry. The additional memory for each entry is greater than the size of my key and value objects put together. Please suggest if there is any object similar to HashMap and consumes less memory.

    Threaded Messages (3)

  2. There are many alternatives here:
  3. Re: Alternate Object for Hashmap[ Go to top ]

    Have you checked commons Jakarta collection components.. See -----------------------
  4. Re: Alternate Object for Hashmap[ Go to top ]

    Frank, Dev Thanks for the links. I tried various objects (eg HashedMap from Apache) equivalent to HashMap. But there was no reduction in the memory consumption :-(