Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26415

locator command slow

    XMLWordPrintable

    Details

    • Commits:
      93ae6f4c06775626db2b2527f7b0c550bf1ea8c4 (qt-creator/qt-creator/6.0)

      Description

      the locator command became very slow for me: `:` to list symbols takes minutes to show up on my (non-trivial, but not enormous) codebase.

      most of the cpu time seems to be spent in `LocatorFilterEntry::operator==`, mainly in `QVariant::canConvert`/`QVariant::toString` (i guess one could use `QVariant::metaType()::equals()` in a fast-path when both `internalData` has the same type (which seems to be the default case).

      however i still wonder if there could be better ways to improve the speed of the locator command e.g. by lazily filtering only the first tens of entries to populate the popup (i guess otherwise the filter is applied to tens/hundert thousands of c++ symbols)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              con Eike Ziller
              Reporter:
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes