summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/script/scriptengine.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-10-21 08:30:53 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-10-29 09:41:20 +0200
commitc4ca0060e39e885770b70302c8ae2f4f7b9f067a (patch)
treef9d5aa9a57e4c3a67a01dbbf198991e41e5bfab6 /src/plugins/debugger/script/scriptengine.cpp
parentac263ef261a6dcea141ffa77a6cbc9b86c286c62 (diff)
downloadqt-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