Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it true that QDir::entryList in Windows is much more slower than in other platforms?
Forum Updated to NodeBB v4.3 + New Features

Is it true that QDir::entryList in Windows is much more slower than in other platforms?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leonardodavinci
    wrote on last edited by
    #1

    In "here":https://bugreports.qt-project.org/browse/QTBUG-28289 there is a bug report that says that QDir::entryList is very slow in Windows. Is it true? Is there any workaround for this bug? I tried to make a find utility for Windows using Qt and I noticed that when I put the program to search the whole C: drive it didn't respond, although I had use QThread. I want to know if entryList has such a problem in order to bypass it. I have written the same program in C# using .NET and the program can search the whole C: drive without any problem.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      peterlin82
      wrote on last edited by
      #2

      Yes,QDir::entryList is very slow in Windows and embedded linux.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MuldeR
        wrote on last edited by
        #3

        Your only real alternative is using the Win32 API directly, i.e. iterate through the files/subfolders of a directoy by calling FindFirstFile() and then FindNextFile() in a loop. Of course makes your code platform-specific.

        Ultimate solution would be analyzing the Qt code and find the bottleneck. Then submit a patch to resolve it ^^

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved