aspose file tools
The moose likes Beginning Java and the fly likes does retrieval time for hashmap varies based on the size of hashmap Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "does retrieval time for hashmap varies based on the size of hashmap" Watch "does retrieval time for hashmap varies based on the size of hashmap" New topic
Author

does retrieval time for hashmap varies based on the size of hashmap

suharika sai
Greenhorn

Joined: Oct 14, 2009
Posts: 1
Hi

Does retrieval time varies for hashmap or hashset varies based on the size?
to be more clear, if there are 1000 objects in hashmap1 and 2000 objects in hashmap2, retrieving an object from which hashmap will be faster and why?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10040
    
    6

Have you tried researching this at all? Have you done any work other than asking here? If so, what have you found?

We don't like to just hand out answers to homework problems (or any other problem). Do a little research, and them come back and tell us what you found, and ask about what doesn't make sense.

Never ascribe to malice that which can be adequately explained by stupidity.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32830
    
    4
Welcome to JavaRanch
You will find lots of useful information in the documentation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does retrieval time for hashmap varies based on the size of hashmap
 
Similar Threads
LinkedHashSet
Doubt regarding equals() and hashCode()
TreeMap & HashMap vs javolution.FastMap
Is read/writing from/in ConcurrentHashMap in ConcurrentHashMap thread safe?
hashCode & HashMap doubts