diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-10-21 08:30:53 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-10-29 09:41:20 +0200 |
commit | c4ca0060e39e885770b70302c8ae2f4f7b9f067a (patch) | |
tree | f9d5aa9a57e4c3a67a01dbbf198991e41e5bfab6 /src/plugins/debugger/script/scriptengine.cpp | |
parent | ac263ef261a6dcea141ffa77a6cbc9b86c286c62 (diff) | |
download | qt-creator-c4ca0060e39e885770b70302c8ae2f4f7b9f067a.tar.gz |
QmlProject: Don't use RegExp for simple wildcard matching
QRegExp matching is quite expensive, and has to be done for every file
in the project directory tree against all possible suffixes. Optimize
for the common case that the pattern is "*.suffix" by doing a
fileName.endsWidth(suffix) in this case.
This speeds up loading of examples/declarative/declarative.qmlproject by
about 30%.
Reviewed-by: Christian Kamm
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
0 files changed, 0 insertions, 0 deletions