How author is saving the RAM in HugeMap?
Solved
General and Desktop
-
Any one has idea, WHat is method author used to save the RAM in hugeMap implementation.
Here the implementation of Hugemap.
This is Hugemap ImplementationIf I understood correctly then author is saving all the address of value in
using ItemMapType = typename std::conditional<sorted, QMap<KeyType, ContainerObject<ValueType> >, QHash<KeyType, ContainerObject<ValueType> > >::type; std::unique_ptr<ItemMapType> m_itemsMap;
Then
if number of values are increase then QMap size will also increase.( use of RAM is increase. )which point i am missing?
-
Hi,
No, it's creating one object of type ItemMapType on the heap.