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

Searching overrides takes too long when pressing "follow symbol under cursor"

    XMLWordPrintable

Details

    • Linux/X11

    Description

      There are some projects, when searching overrides might take too long.

      For example (you can use any other large enough project or something else inside of Qt):

      1) Launch QtCreator

      2)  Open qtbase/src.pro

      3) Navigate to acoreapplication.cpp:1532 (or somewhere around)

      4) Try press F2 on self->compressEvent from the following line:

      && self && self->compressEvent(event, receiver, &data->postEventList)) {

       

      Actual: You'll have to wait around 65 seconds (for 4.7.1, or 40 seconds for 4.8 beta) to get all overrides

      Expected: You should see all overrides almost instantly (yes, sounds optimistic, but it's desired at least)

       

      I see the following solutions:

      1. Implement fast lookup (are there any limitations?)
      2. Display each new override once it found, without waiting the search end
      3. Cache the results somehow, because the time doesn't depend on attempt now

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vitaly.fanaskov Vitaly Fanaskov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes