A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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.
Never ascribe to malice that which can be adequately explained by stupidity.
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
Doubt regarding equals() and hashCode()
TreeMap & HashMap vs javolution.FastMap
Is read/writing from/in ConcurrentHashMap in ConcurrentHashMap thread safe?
hashCode & HashMap doubts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013