A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
does retrieval time for hashmap varies based on the size of hashmap
Joined: Oct 14, 2009
Oct 14, 2009 10:59:09
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?
Joined: Oct 02, 2003
Oct 14, 2009 11:06:24
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.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: Oct 13, 2005
Oct 14, 2009 15:56:41
Welcome to JavaRanch
You will find lots of useful information in the
I agree. Here's the link:
subject: does retrieval time for hashmap varies based on the size of hashmap
hashCode & HashMap doubts
Is read/writing from/in ConcurrentHashMap in ConcurrentHashMap thread safe?
TreeMap & HashMap vs javolution.FastMap
Doubt regarding equals() and hashCode()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014