I just spent some time running performance tests on FastMaps and HashMaps. Calling the get methods
showed no speed difference. The Javalution classes seem to have a speed advantage in building Maps
and Lists. They claim their FastSet.removeLast method is faster than the Java library. So, there is
a speed advantage in certain scenarios, but not in all cases.
-Adrian
Sumit Pandit wrote:
*i have a question please make me correct if i am wrong :-*
if we compare FastMap Vs HashMap,
*FastMap is faster than HashMap so long as the map is long lived and
relatively predictable in size. If you try to use it as a short-lived
general replacement for HashMap it may very well kill your performance.
*I found these lines some where in Google.
so does it mean that we should use HashMap for local variables ?
Also please explain me the performance issue if we use HashMap rather then
FastMap.
Thanks for suggestion.