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

Reusable QtModelIndex instance

    XMLWordPrintable

Details

    Description

      Why?

      Cause

      • Number of the items (if hundreds) to be viewed has a performance impact
      • As a developer I want best performance. There are many cases that the user deals only with an invalid QModelIndex and represents the root index. Extra jni calls can be avoided by adding reusable Q(t)ModelIndex instance.

      Customer

      • TODO

      Cruft

      • TODO

      What?

      Definition

      • Share a reference to a static invalid QtModelIndex to avoid extra JNI calls between jvm & native. To eliminate an invalid QtModelndex going back and forth between JVM & native, because an invalid QtModelIndex does not deliver any information other than being an invalid index (mostly when an item does not have parent aka. invalid parent).

      Demarcation

      Dependencies

      Attachments

        Issue Links

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

          Activity

            People

              soarmin Soheil Armin
              soarmin Soheil Armin
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes