Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 10.0.0-beta2
-
None
-
-
686a40d19 (master), 29811f81d (master)
Description
It looks like SubDirFileIterator is slower about 20 times comparing to QDir::entryInfoList() when done recursively in case many files / dirs are being iterated. I've set homePath to path where I have about 1.5 million files and about 200 K dirs. Modify this path accordingly when verifying the code below: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/476058
My output:
QDEBUG : tst_filepath::iterator() SubDirIterator: Elapsed 171247 ms, count 1426482 QDEBUG : tst_filepath::iterator() EntryInfoList: Elapsed 13239 ms, count 1425253 dir count: 193131
Side note: not sure why the number of files differ in both cases.
Attachments
For Gerrit Dashboard: QTCREATORBUG-28892 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
476058,41 | SubDirFileIterator: Fix performance | master | qt-creator/qt-creator | Status: ABANDONED | +1 | 0 |
477649,25 | SubDirFileIterator: Add manual performance test | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
479244,1 | SubDirFileIterator: Fix performance | 11.0 | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |
479392,31 | FileSearch: Introduce FileContainer | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |