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

[cplusplus] file open/parsing bottleneck in filesystem access

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.15.0-rc1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      when opening a file the preprocessor is executed (`Preprocessor::run`). with my codebase more than 20% of the time is spent in the `stat` system call, inside `CppSourceProcessor::checkFile(QString const&)` -> `QFileInfo::isFile()`

      makes me wonder if there's any way to avoid the system call, e.g. by using a local cache in combination with a filesystem watcher

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes