Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How author is saving the RAM in HugeMap?
Forum Update on Monday, May 27th 2025

How author is saving the RAM in HugeMap?

Scheduled Pinned Locked Moved Solved General and Desktop
ramqmapqvectorqt creatorc++
3 Posts 2 Posters 600 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yash001
    wrote on last edited by Yash001
    #1

    Any one has idea, WHat is method author used to save the RAM in hugeMap implementation.

    Here the implementation of Hugemap.
    This is Hugemap Implementation

    If 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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No, it's creating one object of type ItemMapType on the heap.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        No, it's creating one object of type ItemMapType on the heap.

        Y Offline
        Y Offline
        Yash001
        wrote on last edited by
        #3

        @SGaist Thank you.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved