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

Improve Lookup for QObject

    XMLWordPrintable

Details

    Description

      The main reason for having propertycaches is that property lookups on the metaobject are rather slow - and they still are in Qt 6. While it should be possible to speed them up in Qt 6, we still won't match the speed of the property caches.

       

      However, we can already skip property lookups if a QV4::Lookup is used, which caches the property data. Unfortunately, the qobject Lookup is somewhat limited and monomorphic. We ought to collect more data about Lookup transitions, and we probably will need a poly- or even megamorphic lookup for QObjects.

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: