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

[REG 6.7.3 -> 6.8.0] QDir::entryInfoList slower accessing SMB share from macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2
    • Core: I/O
    • None
    • macOS

    Description

      I am using QDir::entryInfoList to find files on a SMB share containing just under 1000 files. The share is hosted on a Windows machine and the Qt application is running on macOS machine. I'm calling the function like:

      QDir(dirPath).entryInfoList(QDir::Files | QDir::Hidden, QDir::Unsorted) 

      With QDir::Hidden to include hidden files because I noticed it speeds things up a lot not having to check whether the files are hidden. This worked fairly well with Qt through 6.7.3, taking around 500ms. However starting with Qt 6.8.0 and still happening on 6.8.2, it's about an order of magnitude slower at 5+ seconds. Not every single time (macOS or something is caching perhaps? but it's inconsistent), but at least the first time querying the directory and usually after retrying a few times or waiting a bit.

      Per the discussion in a similar issue (QTBUG-134699), I am wondering if Qt 6.8+ is doing additional work (like checking isSymLink() even if it doesn't need to) which could be causing the slowdown. I tried using the new QDirListing class directly but it doesn't help.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              jdpurcell J.D. Purcell
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes