Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[emfstore-dev] LinkedHashMap/Set vs. HashMap/Set

Dear committers,

due to recent problems to reproduce a particular bug, I wanted to bring
up LinkedHashMaps and LinkedHashSets once more. They are both almost as
fast as HashMap and HashSet and have a memory overhead induced by a
double-linked list to maintain the order, but they have the advantage of
providing a deterministic iteration order. This is very important for
reproducibility. So please think twice before using a HashMap/Set and
consider using a LinkedHashMap/Set if this will not significantly
degrade performance or memory in your case. If in doubt I am always
happy to discuss ;).

Cheers,
Maximilian


-- 
Maximilian Koegel

EMFStore and EMF Client Platform Project Lead
http://emfstore.org
http://emfcp.org


Back to the top