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

Qt6's QSET very slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.2.2
    • Core: Other
    • None
    • Linux/X11

    Description

      This is the stacktrace:

      It takes ages when I try to do set difference with - operator, when sets have around 10000 items both. It spends ages in 1+2 functions of stacktrace.

      Same code works 100000x faster with Qt 5.

      1   QHashPrivate::Data<QHashPrivate::Node<QString, QHashDummyValue>>::erase    qhash.h                664 0x7ffff7797e35 
      2   QHash<QString, QHashDummyValue>::remove                                    qhash.h                885 0x7ffff7797b54 
      3   QSet<QString>::remove                                                      qset.h                 99  0x7ffff779753d 
      4   QSet<QString>::subtract                                                    qset.h                 317 0x7ffff779737f 
      5   QSet<QString>::operator-=                                                  qset.h                 226 0x7ffff778c8e1 
      6   QSet<QString>::operator-                                                   qset.h                 235 0x7ffff7846a69 
      

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              skunkos Martin Rotter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes