diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-06-15 10:09:25 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-06-15 10:14:59 (GMT) |
commit | 44766d265c16551043d2739171069fe042c40091 (patch) | |
tree | 63c5d8e8a1a01da41f8b3578f8dd919bee93fc2c /src/gui/painting/qmatrix.h | |
parent | 5d02b900f6070872a305f8405b504ecc01833de7 (diff) | |
download | Qt-44766d265c16551043d2739171069fe042c40091.zip Qt-44766d265c16551043d2739171069fe042c40091.tar.gz Qt-44766d265c16551043d2739171069fe042c40091.tar.bz2 |
Improve the speed of QDir, QFileInfo and QDirIterator.
This patch basically avoid to call too often currentFileInfo in
QDirIterator. It replaces the QHash that was overkill in QFileInfo for
caching filenames. The last part is reordering the matchesFilter
to avoid stat as much as possible by using the power of && and filters
that are set on QDirIterator. And it fixes some random "mistake".
I have added a benchmark in QDir which test some use case with
10000 files in a dir.
Written-with: Benjamin
Reviewed-by: phartman
Diffstat (limited to 'src/gui/painting/qmatrix.h')
0 files changed, 0 insertions, 0 deletions