Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95624

Need a non-shared QHash

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 6.x
    • Fix Version/s: None
    • Labels:
      None

      Description

      Now that QHash competes favourably with its STL counterpart again, we're missing a non-shared version of it. So far, we were able to use the STL containers for containers that weren't shared:

      • QList → std::vector / QVarLengthArray
      • QMapstd::map{{}}
      • Q5Hashstd::unordered_map
      • Q6Hash → ???

      QFlatMap is a candidate, but that has different performance characteristics, in particular, it's not well-suited for mixed inserts and removals.

      What we really need, though, is a, say, QHashTable that's not implicitly shared, but otherwise like QHash.

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mmutz Marc Mutz
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes