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.